Merge pull request #391 from NenoLoje/users/nenoloje/fix-publishpostdisplaybug

Fix for issue #388 to handle Mnemonics correctly.
This commit is contained in:
Scott Lovegrove 2016-02-24 20:37:42 +00:00
commit 173ca2985f
1 changed files with 1 additions and 1 deletions

View File

@ -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))