From: Thomas Geymayer Date: Wed, 26 Sep 2012 21:52:43 +0000 (+0200) Subject: Canvas: On z-index change move element always to last position of elements with same... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b8b4fb00f8104a5a58dacbb1aff39e2ab4bf513c;p=flightgear.git Canvas: On z-index change move element always to last position of elements with same z-index --- 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;