aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
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
commit230caa47b56acc1dc078403395a1e59b21a162e5 (patch)
tree3a34b87784decdb4aaf1144fc253c29008e9070c /src
parentf18e3210bee6e4c3888ffd9f09f5242028317295 (diff)
downloadscintilla-mirror-230caa47b56acc1dc078403395a1e59b21a162e5.tar.gz
Ensure style data initialised before drawing margin.
Diffstat (limited to 'src')
-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();