From e8f0b159b82682a548a6a28c3dd833455bb81dcc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 11 Apr 2012 21:51:47 +1000 Subject: Bug #3514882. Properly determine last line that needs to be styled before painting by calling StyleToPositionInView() after style data is refreshed, so that PositionAfterArea() can use the correct line height in calculation. This problem was introduced in change set 3259. From Marko Njezic. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index dd3e632b7..1f6ac5b34 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3502,11 +3502,11 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { // paintingAllText, rcArea.left, rcArea.top, rcArea.right, rcArea.bottom); AllocateGraphics(); - StyleToPositionInView(PositionAfterArea(rcArea)); - RefreshStyleData(); RefreshPixMaps(surfaceWindow); + StyleToPositionInView(PositionAfterArea(rcArea)); + PRectangle rcClient = GetClientRectangle(); //Platform::DebugPrintf("Client: (%3d,%3d) ... (%3d,%3d) %d\n", // rcClient.left, rcClient.top, rcClient.right, rcClient.bottom); -- cgit v1.2.3