diff options
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r-- | src/MarginView.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx index 09b01959e..18c1b33b0 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -124,7 +124,7 @@ void MarginView::DropGraphics() noexcept { } void MarginView::RefreshPixMaps(Surface *surfaceWindow, const ViewStyle &vsDraw) { - if (!pixmapSelPattern) { + if (!(pixmapSelPattern && pixmapSelPatternOffset1)) { constexpr int patternSize = 8; pixmapSelPattern = surfaceWindow->AllocatePixMap(patternSize, patternSize); pixmapSelPatternOffset1 = surfaceWindow->AllocatePixMap(patternSize, patternSize); |