From ab7cc89c4f9f938575e777530c31312cde116208 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Sun, 13 Dec 2015 20:23:22 +0100 Subject: cppification and performance (bzr r14529) --- src/display/sp-canvas-util.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/display/sp-canvas-util.cpp') diff --git a/src/display/sp-canvas-util.cpp b/src/display/sp-canvas-util.cpp index 79c8c614e..25b70824b 100644 --- a/src/display/sp-canvas-util.cpp +++ b/src/display/sp-canvas-util.cpp @@ -67,6 +67,9 @@ void sp_canvas_item_set_i2w_affine (SPCanvasItem * item, Geom::Affine const &i2 void sp_canvas_item_move_to_z (SPCanvasItem * item, gint z) { g_assert (item != NULL); + + if (z == 0) + return sp_canvas_item_lower_to_bottom(item); gint current_z = sp_canvas_item_order (item); -- cgit v1.2.3