aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-11-03 09:12:00 +1100
committernyamatongwe <devnull@localhost>2011-11-03 09:12:00 +1100
commite8bba407198738106cfe62ff8782e895a2993b97 (patch)
tree04d659b605498d39c3e08e48e097f50fc0ee9237 /src
parentc4e2478a006b8bfc31a840bef88f9dee4c71d6d7 (diff)
downloadscintilla-mirror-e8bba407198738106cfe62ff8782e895a2993b97.tar.gz
Ensure graphics allocated before painting.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index d52d2498f..4c647b61e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3477,6 +3477,7 @@ void Editor::DrawCarets(Surface *surface, ViewStyle &vsDraw, int lineDoc, int xS
void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) {
//Platform::DebugPrintf("Paint:%1d (%3d,%3d) ... (%3d,%3d)\n",
// paintingAllText, rcArea.left, rcArea.top, rcArea.right, rcArea.bottom);
+ AllocateGraphics();
StyleToPositionInView(PositionAfterArea(rcArea));