commit | 4ff4cc91bcd7f3e0d49350483e58f2d512c95783 | [log] [tgz] |
---|---|---|
author | Silenio Quarti <silenio> | Thu Nov 22 17:18:56 2001 +0000 |
committer | Silenio Quarti <silenio> | Thu Nov 22 17:18:56 2001 +0000 |
tree | 545b81486af60ae2697d7b5aa6d27bef50d6d903 | |
parent | a90c6f0aa99c22679029d1ecec46c6bcc59877e8 [diff] |
fix for 4832
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index 664aa2f..05cafe4 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
@@ -578,8 +578,10 @@ OS.GetObject (hFont, LOGFONT.sizeof, logFont); int cs = logFont.lfCharSet & 0xFF; int [] lpCs = new int [8]; - OS.TranslateCharsetInfo (cs, lpCs, OS.TCI_SRCCHARSET); - return lpCs [1]; + if (OS.TranslateCharsetInfo (cs, lpCs, OS.TCI_SRCCHARSET)) { + return lpCs [1]; + } + return OS.GetACP (); } /**