diff options
author | Neil <nyamatongwe@gmail.com> | 2025-05-28 10:00:12 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-05-28 10:00:12 +1000 |
commit | 7909c514d76359577accb9c2417590e6cff4e184 (patch) | |
tree | 110d89ada897a8b740eeccbf98801b3c649340b8 /src | |
parent | 12f6ca53a028a72028b345e6fb3d181c47b66105 (diff) | |
download | scintilla-mirror-7909c514d76359577accb9c2417590e6cff4e184.tar.gz |
Bug [#2481]. Refresh pixmaps later inside Paint so non-null when dereferenced in
for validity check.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 5 |
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. |