From b8b4fb00f8104a5a58dacbb1aff39e2ab4bf513c Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Wed, 26 Sep 2012 23:52:43 +0200 Subject: [PATCH] Canvas: On z-index change move element always to last position of elements with same z-index --- src/Canvas/elements/group.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Canvas/elements/group.cxx b/src/Canvas/elements/group.cxx index ddd789921..3cfc66087 100644 --- a/src/Canvas/elements/group.cxx +++ b/src/Canvas/elements/group.cxx @@ -173,7 +173,7 @@ namespace canvas ++next; while( next != _children.end() - && next->first->getIntValue("z-index", 0) < z_index ) + && next->first->getIntValue("z-index", 0) <= z_index ) { ++index_new; ++next; -- 2.39.5