diff options
author | nyamatongwe <unknown> | 2011-11-03 09:12:00 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-11-03 09:12:00 +1100 |
commit | 1f8315bf2b92c617030f66dc2a8bf4f68165dd66 (patch) | |
tree | bca04788af47b48df32384eaa5534757b8fee2b6 | |
parent | 73972e4abdf22f5c29d85c6e6e1a6982c31ef56d (diff) | |
download | scintilla-mirror-1f8315bf2b92c617030f66dc2a8bf4f68165dd66.tar.gz |
Ensure graphics allocated before painting.
-rw-r--r-- | src/Editor.cxx | 1 |
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)); |