Code

deselect if not keep_selected
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 21 May 2006 15:26:42 +0000 (15:26 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 21 May 2006 15:26:42 +0000 (15:26 +0000)
src/dyna-draw-context.cpp

index f1128c4921231c97edb09f19d83bdd9b55e484c9..acbd6ae80af7bd128d1e21e08ac0947af5d41206 100644 (file)
@@ -659,8 +659,11 @@ set_to_accumulated(SPDynaDrawContext *dc)
             Inkscape::GC::release(dc->repr);
             item->transform = SP_ITEM(desktop->currentRoot())->getRelativeTransform(desktop->currentLayer());
             item->updateRepr();
-            if (dc->keep_selected)
+            if (dc->keep_selected) {
                 sp_desktop_selection(desktop)->set(dc->repr);
+            } else {
+                sp_desktop_selection(desktop)->clear();
+            }
         }
         abp = nr_artpath_affine(sp_curve_first_bpath(dc->accumulated), sp_desktop_dt2root_affine(desktop));
         str = sp_svg_write_path(abp);