From 922a70ac051ac097632bc26e56c23fffb65aa43d Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 29 May 2025 10:37:25 +1000 Subject: Recreate all pixmaps if any null as this may better handle cases where some allocations succeed and others fail. --- src/EditView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/EditView.cxx') 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); -- cgit v1.2.3