aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/macwindowmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index 570c526565..12cd391f92 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -284,7 +284,7 @@ void MacWindowManager::removeWindow(MacWindow *target) {
void macDrawPixel(int x, int y, int color, void *data) {
MacPlotData *p = (MacPlotData *)data;
- if (p->fillType > p->patterns->size())
+ if (p->fillType > p->patterns->size() || !p->fillType)
return;
byte *pat = p->patterns->operator[](p->fillType - 1);