From 06dcead5d17be50b19bfbc83aedc6c642b4b68fe Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Thu, 2 Dec 1999 21:54:39 +0000 Subject: [PATCH] bad or of flags, r=dcone, bug 13745 git-svn-id: svn://10.0.0.236/trunk@55088 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/windows/nsDeviceContextWin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/gfx/src/windows/nsDeviceContextWin.cpp b/mozilla/gfx/src/windows/nsDeviceContextWin.cpp index 1405678a38e..dc23a39e978 100644 --- a/mozilla/gfx/src/windows/nsDeviceContextWin.cpp +++ b/mozilla/gfx/src/windows/nsDeviceContextWin.cpp @@ -247,7 +247,7 @@ nsresult GetSysFontInfo(HDC aHDC, nsSystemAttrID anID, nsFont * aFont) // Do Style aFont->style = NS_FONT_STYLE_NORMAL; if (logFont->lfItalic) { - aFont->decorations &= NS_FONT_STYLE_ITALIC; + aFont->style = NS_FONT_STYLE_ITALIC; } // XXX What about oblique? @@ -260,10 +260,10 @@ nsresult GetSysFontInfo(HDC aHDC, nsSystemAttrID anID, nsFont * aFont) // Do decorations aFont->decorations = NS_FONT_DECORATION_NONE; if (logFont->lfUnderline) { - aFont->decorations &= NS_FONT_DECORATION_UNDERLINE; + aFont->decorations |= NS_FONT_DECORATION_UNDERLINE; } if (logFont->lfStrikeOut) { - aFont->decorations &= NS_FONT_DECORATION_LINE_THROUGH; + aFont->decorations |= NS_FONT_DECORATION_LINE_THROUGH; } // Do Size