Code

Force non-interruptible redraws while modifying paths to ensure accurate display
authorjohncoswell <johncoswell@users.sourceforge.net>
Mon, 4 Sep 2006 15:53:55 +0000 (15:53 +0000)
committerjohncoswell <johncoswell@users.sourceforge.net>
Mon, 4 Sep 2006 15:53:55 +0000 (15:53 +0000)
src/nodepath.cpp

index 067cf5435428d6a2b2452d900532bd464ffaa652..12de70eda760e5b856dcefd627f0171d09b518bc 100644 (file)
@@ -441,6 +441,8 @@ static void update_object(Inkscape::NodePath::Path *np)
 
     SPCurve *curve = create_curve(np);
 
+    sp_canvas_force_full_redraws(np->desktop->canvas, 2);
+    
     sp_shape_set_curve(SP_SHAPE(np->path), curve, TRUE);
 
     sp_curve_unref(curve);
@@ -483,6 +485,8 @@ void sp_nodepath_update_repr(Inkscape::NodePath::Path *np, const gchar *annotati
     g_return_if_fail(np != NULL);
 
     update_repr_internal(np);
+    sp_canvas_clear_forced_full_redraws(np->desktop->canvas);
+    
     sp_document_done(sp_desktop_document(np->desktop), SP_VERB_CONTEXT_NODE, 
                      annotation);