diff options
Diffstat (limited to 'muse2')
| -rw-r--r-- | muse2/muse/cobject.cpp | 20 | 
1 files changed, 16 insertions, 4 deletions
| diff --git a/muse2/muse/cobject.cpp b/muse2/muse/cobject.cpp index 59a9463e..b4c6537c 100644 --- a/muse2/muse/cobject.cpp +++ b/muse2/muse/cobject.cpp @@ -85,8 +85,11 @@ TopWin::TopWin(ToplevelType t, QWidget* parent, const char* name, Qt::WindowFlag  	subwinAction->setChecked(isMdiWin());  	shareAction->setChecked(_sharesToolsAndMenu);  	fullscreenAction->setEnabled(!isMdiWin()); - -	resize(_widthInit[_type], _heightInit[_type]); +	 +	if (mdisubwin) +		mdisubwin->resize(_widthInit[_type], _heightInit[_type]); +	else +		resize(_widthInit[_type], _heightInit[_type]);  } @@ -359,8 +362,17 @@ void TopWin::shareToolsAndMenu(bool val)  void TopWin::storeInitialState() const  { -	_widthInit[_type] = width(); -	_heightInit[_type] = height(); +	if (mdisubwin) +	{ +		_widthInit[_type] = mdisubwin->width(); +		_heightInit[_type] = mdisubwin->height(); +	} +	else +	{ +		_widthInit[_type] = width(); +		_heightInit[_type] = height(); +	} +	  	if (sharesToolsAndMenu())  	{  		if (muse->getCurrentMenuSharingTopwin() == this) | 
