diff options
author | Neil <nyamatongwe@gmail.com> | 2015-05-13 13:35:38 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-05-13 13:35:38 +1000 |
commit | b57c5c13df4434754f3bf3d39c20e1926578a6da (patch) | |
tree | e3d716764d3dd87811f1c2ccf2145558050ec884 /qt/ScintillaEditBase/PlatQt.cpp | |
parent | 5f5ca4123c3a3ae3443e8f45c2b3d4df7309c708 (diff) | |
download | scintilla-mirror-b57c5c13df4434754f3bf3d39c20e1926578a6da.tar.gz |
Bug [#1703]. Fix bug when drawing text margins in buffered mode which would use
default encoding instead of chosen encoding.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 71bdae792..35e4aee78 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -182,7 +182,7 @@ void SurfaceImpl::Init(SurfaceID sid, WindowID /*wid*/) void SurfaceImpl::InitPixMap(int width, int height, - Surface * /*surface*/, + Surface *surface, WindowID /*wid*/) { Release(); @@ -190,6 +190,9 @@ void SurfaceImpl::InitPixMap(int width, if (height < 1) height = 1; deviceOwned = true; device = new QPixmap(width, height); + SurfaceImpl *psurfOther = static_cast<SurfaceImpl *>(surface); + SetUnicodeMode(psurfOther->unicodeMode); + SetDBCSMode(psurfOther->codePage); } void SurfaceImpl::Release() |