Code

fix the undo-while-drawing crash in star and spiral
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 30 Mar 2007 07:59:10 +0000 (07:59 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 30 Mar 2007 07:59:10 +0000 (07:59 +0000)
src/spiral-context.cpp
src/star-context.cpp

index f912d66146b138aa9f21ceb4f07f92effdc8ed0b..bdc7c65c70bb5c2532127f1c0b1f9a2b796c8ef0 100644 (file)
@@ -456,7 +456,7 @@ sp_spiral_finish(SPSpiralContext *sc)
         SPSpiral  *spiral = SP_SPIRAL(sc->item);
 
         sp_shape_set_shape(SP_SHAPE(spiral));
-        SP_OBJECT(spiral)->updateRepr(NULL, SP_OBJECT_WRITE_EXT);
+        SP_OBJECT(spiral)->updateRepr(SP_OBJECT_WRITE_EXT);
 
         sp_canvas_end_forced_full_redraws(desktop->canvas);
 
index 611866acf17da167c1c0267c9b950fc683d36516..d6e9f85837cdb08590db09e35d3491f7afdc59f5 100644 (file)
@@ -468,7 +468,7 @@ sp_star_finish (SPStarContext * sc)
 
         sp_shape_set_shape(SP_SHAPE(sc->item));
 
-        object->updateRepr(NULL, SP_OBJECT_WRITE_EXT);
+        object->updateRepr(SP_OBJECT_WRITE_EXT);
 
         sp_canvas_end_forced_full_redraws(desktop->canvas);