Code

fix Bug #177891 feGaussianBlur crashes when setting fill paint as input
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 28 Dec 2007 16:14:15 +0000 (16:14 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 28 Dec 2007 16:14:15 +0000 (16:14 +0000)
src/display/nr-filter-slot.cpp

index 17ea373ae08ba35dc6486247c62ea15b4fb23dbf..62a8717bb2c0e83bb4ad6b4a8ef0534bc0083765 100644 (file)
@@ -144,7 +144,10 @@ NRPixBlock *FilterSlot::get(int slot_nr)
         }
     }
 
-    _slot[index]->empty = false;
+    if (_slot[index]) {
+        _slot[index]->empty = false;
+    }
+
     assert(slot_nr == NR_FILTER_SLOT_NOT_SET ||_slot_number[index] == slot_nr);
     return _slot[index];
 }