aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-05-29 10:37:25 +1000
committerNeil <nyamatongwe@gmail.com>2025-05-29 10:37:25 +1000
commit922a70ac051ac097632bc26e56c23fffb65aa43d (patch)
treea5535b583aec8190f40643dd3b2c2770ff641095 /src/EditView.cxx
parentd2926229e07bffa106216e23bfcf0f28eee55f1a (diff)
downloadscintilla-mirror-922a70ac051ac097632bc26e56c23fffb65aa43d.tar.gz
Recreate all pixmaps if any null as this may better handle cases where some
allocations succeed and others fail.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r--src/EditView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index e8c8562ec..dddd84d94 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -277,7 +277,7 @@ void EditView::DropGraphics() noexcept {
}
void EditView::RefreshPixMaps(Surface *surfaceWindow, const ViewStyle &vsDraw) {
- if (!pixmapIndentGuide) {
+ if (!(pixmapIndentGuide && pixmapIndentGuideHighlight)) {
// 1 extra pixel in height so can handle odd/even positions and so produce a continuous line
pixmapIndentGuide = surfaceWindow->AllocatePixMap(1, vsDraw.lineHeight + 1);
pixmapIndentGuideHighlight = surfaceWindow->AllocatePixMap(1, vsDraw.lineHeight + 1);