aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r--src/MarginView.cxx2
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);