]> git.mxchange.org Git - flightgear.git/commitdiff
Canvas: On z-index change move element always to last position of elements with same...
authorThomas Geymayer <tomgey@gmail.com>
Wed, 26 Sep 2012 21:52:43 +0000 (23:52 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Wed, 26 Sep 2012 21:52:43 +0000 (23:52 +0200)
src/Canvas/elements/group.cxx

index ddd789921ee531cd65fcb8599e36fa6dad5b889b..3cfc66087e1dfe5d1c1f08e444799020a3bd4227 100644 (file)
@@ -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;