aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-04-11 21:51:47 +1000
committernyamatongwe <unknown>2012-04-11 21:51:47 +1000
commite8f0b159b82682a548a6a28c3dd833455bb81dcc (patch)
tree6720bc0110d917071e4c05918edde92498e246dd /src/Editor.cxx
parentd74c5043af6fec7ffad9284c712c2f9653a3762b (diff)
downloadscintilla-mirror-e8f0b159b82682a548a6a28c3dd833455bb81dcc.tar.gz
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.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files 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);