From f09460007f0851013a8b35fba8f3283ff1c6e977 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 3 Jul 2013 09:48:40 +1000 Subject: Ensure style data initialised before drawing margin. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3