aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-07-03 09:48:40 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-07-03 09:48:40 +1000
commitf09460007f0851013a8b35fba8f3283ff1c6e977 (patch)
tree0b23ba630ec662839fc086712c8dc391475f3934
parentdb454bdf6d717c9775079b292ee1a70b65cb449c (diff)
downloadscintilla-mirror-f09460007f0851013a8b35fba8f3283ff1c6e977.tar.gz
Ensure style data initialised before drawing margin.
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 30f8120c0..f778ea933 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1806,6 +1806,8 @@ void Editor::PaintSelMargin(Surface *surfWindow, PRectangle &rc) {
if (vs.fixedColumnWidth == 0)
return;
+ AllocateGraphics();
+ RefreshStyleData();
RefreshPixMaps(surfWindow);
PRectangle rcMargin = GetClientRectangle();