diff options
author | nyamatongwe <devnull@localhost> | 2012-04-11 21:51:47 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-04-11 21:51:47 +1000 |
commit | e48928eddae4f586437108b907308664e5cd66ae (patch) | |
tree | af9fc8972ba959749291e55578c71f86d2e64bc2 | |
parent | 79a6f2428f998631c2dea7c1ec594302c5cdf283 (diff) | |
download | scintilla-mirror-e48928eddae4f586437108b907308664e5cd66ae.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.
-rw-r--r-- | src/Editor.cxx | 4 |
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); |