diff options
author | Neil <nyamatongwe@gmail.com> | 2015-12-07 11:09:26 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-12-07 11:09:26 +1100 |
commit | 1e1788d88e6134f533492a1663d133f4c45c0ff2 (patch) | |
tree | a58ed8ace2dcba424a43796c2723b93c60ce6e39 | |
parent | 3c85e3a83b0d2f7da09b7b2573cb799842285ca7 (diff) | |
download | scintilla-mirror-1e1788d88e6134f533492a1663d133f4c45c0ff2.tar.gz |
Allow any style for IME instead of truncating style to 5 bits.
-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 |