Code

First GSoC node tool commit to Bazaar
[inkscape.git] / src / display / sp-canvas-util.cpp
index 30cd0dfa0b31f5e99debf16a6a8704cb0dbb4934..a23b157df6a7150aff20bae8cfe9c670c587ba9c 100644 (file)
@@ -112,10 +112,11 @@ void sp_canvas_item_move_to_z (SPCanvasItem * item, gint z)
     if (z == current_z)
         return;
 
-    if (z > current_z)
+    if (z > current_z) {
         sp_canvas_item_raise (item, z - current_z);
-
-    sp_canvas_item_lower (item, current_z - z);
+    } else {
+        sp_canvas_item_lower (item, current_z - z);
+    }
 }
 
 gint