From 1f8315bf2b92c617030f66dc2a8bf4f68165dd66 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 3 Nov 2011 09:12:00 +1100 Subject: Ensure graphics allocated before painting. --- src/Editor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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)); -- cgit v1.2.3