Merge pull request #391 from NenoLoje/users/nenoloje/fix-publishpostdisplaybug
Fix for issue #388 to handle Mnemonics correctly.
This commit is contained in:
commit
173ca2985f
|
@ -81,7 +81,7 @@ namespace OpenLiveWriter.CoreServices.Layout
|
|||
textMode == GdiTextDrawMode.EndEllipsis ? User32.DT.END_ELLIPSIS
|
||||
: textMode == GdiTextDrawMode.WordBreak ? User32.DT.WORDBREAK | User32.DT.END_ELLIPSIS
|
||||
: User32.DT.WORDBREAK;
|
||||
if (useMnemonics)
|
||||
if (!useMnemonics)
|
||||
flags |= User32.DT.NOPREFIX;
|
||||
|
||||
if (0 == User32.DrawTextEx(hdc, sb, sb.Length, ref rect, flags, ref dtparams))
|
||||
|
|
Loading…
Reference in New Issue