diff options
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index fcf68db9e..4756a89af 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -2631,7 +2631,7 @@ void ScintillaWin::ImeStartComposition() {  		if (stylesValid) {  			// Since the style creation code has been made platform independent,  			// The logfont for the IME is recreated here. -			int styleHere = (pdoc->StyleAt(sel.MainCaret())) & 31; +			const int styleHere = pdoc->StyleIndexAt(sel.MainCaret());  			LOGFONTW lf = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, L""};  			int sizeZoomed = vs.styles[styleHere].size + vs.zoomLevel * SC_FONT_SIZE_MULTIPLIER;  			if (sizeZoomed <= 2 * SC_FONT_SIZE_MULTIPLIER)	// Hangs if sizeZoomed <= 1 | 
