aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index d941612b1..d081c989e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1868,7 +1868,6 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) {
RefreshStyleData();
if (paintState == PaintState::abandoned)
return; // Scroll bars may have changed so need redraw
- RefreshPixMaps(surfaceWindow);
paintAbandonedByStyling = false;
@@ -1880,7 +1879,6 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) {
if (NotifyUpdateUI()) {
RefreshStyleData();
- RefreshPixMaps(surfaceWindow);
}
// Wrap the visible lines if needed.
@@ -1890,9 +1888,10 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) {
if (AbandonPaint()) {
return;
}
- RefreshPixMaps(surfaceWindow); // In case pixmaps invalidated by scrollbar change
}
+ RefreshPixMaps(surfaceWindow);
+
if (!marginView.pixmapSelPattern->Initialised()) {
// When Direct2D is used, pixmap creation may fail with D2DERR_RECREATE_TARGET so
// abandon this paint to avoid further failures.