From dea5603bb6984640f0287a4b4b9301f42886c47c Mon Sep 17 00:00:00 2001 From: NenoLoje Date: Sat, 20 Feb 2016 20:33:18 +0000 Subject: [PATCH] Fix for issue #388 to handle Mnemonics correctly. --- src/managed/OpenLiveWriter.CoreServices/Layout/GdiTextHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managed/OpenLiveWriter.CoreServices/Layout/GdiTextHelper.cs b/src/managed/OpenLiveWriter.CoreServices/Layout/GdiTextHelper.cs index c0f5280e..5e005b34 100644 --- a/src/managed/OpenLiveWriter.CoreServices/Layout/GdiTextHelper.cs +++ b/src/managed/OpenLiveWriter.CoreServices/Layout/GdiTextHelper.cs @@ -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))