From: vsr Date: Fri, 28 Dec 2007 15:30:05 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_0_0a1~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ffbeb28be38110e14dad4a39068c8c54f46b98e2;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index bfb32cb88..cd23a38d7 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -259,12 +259,13 @@ bool SUIT_FileDlg::addWidgets( QWidget* l, QWidget* w, QWidget* b ) QGridLayout* grid = ::qobject_cast( layout() ); if ( grid ) { int row = grid->rowCount(); + int columns = grid->columnCount(); if ( l ) grid->addWidget( l, row, 0 ); if ( w ) - grid->addWidget( w, row, 1, 1, 3 ); + grid->addWidget( w, row, 1, 1, columns-2 ); if ( b ) - grid->addWidget( b, row, 5 ); + grid->addWidget( b, row, columns-1 ); return true; } return false;