From e80cf4b9fceec01233ecbb239ba3240dc855ff27 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 17 Jul 2008 00:16:02 +0000 Subject: [PATCH] added minimal width and height when restoring subwindow-states git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1313 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/gui/main_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp index 837aa518e..a87e30457 100644 --- a/src/gui/main_window.cpp +++ b/src/gui/main_window.cpp @@ -588,8 +588,8 @@ void mainWindow::restoreWidgetState( QWidget * _w, const QDomElement & _de ) { QRect r( tMax( 0, _de.attribute( "x" ).toInt() ), tMax( 0, _de.attribute( "y" ).toInt() ), - _de.attribute( "width" ).toInt(), - _de.attribute( "height" ).toInt() ); + tMax( 100, _de.attribute( "width" ).toInt() ), + tMax( 100, _de.attribute( "height" ).toInt() ) ); if( !r.isNull()) { if ( _w->parentWidget() != NULL &&