Code

fix 1721790
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 26 Jun 2007 02:27:14 +0000 (02:27 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 26 Jun 2007 02:27:14 +0000 (02:27 +0000)
src/rubberband.cpp

index a1621237980e38c64807f7856c919bdd936472ea..24087b10caaa9cd5f5ebed24e9359350cc9ff730 100644 (file)
@@ -70,7 +70,8 @@ void Inkscape::Rubberband::stop()
 
     delete_canvas_items();
 
-    sp_canvas_end_forced_full_redraws(_desktop->canvas);
+    if (_desktop)
+        sp_canvas_end_forced_full_redraws(_desktop->canvas);
 }
 
 void Inkscape::Rubberband::move(NR::Point const &p)