Salome HOME
Fix for bug 10438: Crash during Explode on Blocks operation (Global selection on...
[modules/gui.git] / src / Qtx / QtxMainWindow.cxx
index f48012050214d1f285195f361ef1c59634b02555..faf8642cfbed7643e2e23c0042af1ac93f6cdf5a 100644 (file)
@@ -58,8 +58,8 @@ bool QtxMainWindow::Filter::eventFilter( QObject* o, QEvent* e )
 
 QtxMainWindow::QtxMainWindow( QWidget* parent, const char* name, WFlags f )
 : QMainWindow( parent, name, f ),
-myMenuBar( 0 ),
-myStatusBar( 0 )
+myMenuBar( NULL ),
+myStatusBar( NULL )
 {
 }
 
@@ -250,8 +250,8 @@ void QtxMainWindow::saveGeometry( QtxResourceMgr* resMgr, const QString& section
 
   resMgr->setValue( sec, "pos_x", pos().x() );
   resMgr->setValue( sec, "pos_y", pos().y() );
-  resMgr->setValue( sec, "width", frameGeometry().width() );
-  resMgr->setValue( sec, "height",frameGeometry().height() );
+  resMgr->setValue( sec, "width", width() );
+  resMgr->setValue( sec, "height", height() );
 
   int winState = WS_Normal;
   if ( isMinimized() )