|
@@ -442,7 +442,7 @@ Text UIMLView::addMember( Text uiml )
|
|
|
{
|
|
|
XML::Element *e = new XML::Element( uiml );
|
|
|
if( parseElement( e ) )
|
|
|
- dom->addChild( e );
|
|
|
+ dom->addChildAtFront( e );
|
|
|
return e->getAttributeValue( "id" );
|
|
|
}
|
|
|
|
|
@@ -542,9 +542,10 @@ void UIMLView::render( Bild &rObj )
|
|
|
ZeichnungHintergrund::render( rObj );
|
|
|
if( dom )
|
|
|
{
|
|
|
- for( auto i = dom->getChilds(); i; i++ )
|
|
|
+ for( int i = dom->getChildCount() - 1; i >= 0; i-- )
|
|
|
{ // TODO render elements backwards
|
|
|
- Zeichnung *z = members->z( i->getAttributeValue( "id" ) );
|
|
|
+ XML::Element *e = dom->zChild( i );
|
|
|
+ Zeichnung *z = members->z( e->getAttributeValue( "id" ) );
|
|
|
if( z )
|
|
|
z->render( rObj );
|
|
|
}
|