Sizes should remain the same when ungrouping.

This commit is contained in:
dfighter1985 2014-10-08 21:00:56 +02:00
parent f48c247e2b
commit fcf3482b02

View file

@ -2571,16 +2571,15 @@ namespace NLGUI
oldId = e->getId(); oldId = e->getId();
e->setW( e->getWReal() );
e->setH( e->getHReal() );
e->setSizeRef( "" );
e->setParent( p ); e->setParent( p );
if( e->getParentPos() == this ) e->setParentPos( p );
e->setParentPos( p ); e->setParentSize( p );
e->alignTo( p );
if( e->getParentSize() == this )
e->setParentSize( p );
if( e->getParentPos() == p )
e->alignTo( p );
p->addElement( e ); p->addElement( e );
e->setIdRecurse( e->getShortId() ); e->setIdRecurse( e->getShortId() );