diff options
-rw-r--r-- | svtools/source/dialogs/filedlg2.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx index b46f3246e3a0..ebc9d35b657e 100644 --- a/svtools/source/dialogs/filedlg2.cxx +++ b/svtools/source/dialogs/filedlg2.cxx @@ -545,7 +545,7 @@ void ImpPathDialog::PreExecute() { Size aDlgSize = GetPathDialog()->GetOutputSizePixel(); GetPathDialog()->SetOutputSizePixel( Size( aDlgSize.Width()+nMaxWidth-aSize.Width(), aDlgSize.Height() ) ); - aSize.Width() = nMaxWidth; + aSize.setWidth(nMaxWidth); if( pOkBtn ) pOkBtn->SetSizePixel( aSize ); @@ -554,8 +554,6 @@ void ImpPathDialog::PreExecute() if( pLoadBtn ) pLoadBtn->SetSizePixel( aSize ); } - else - nMaxWidth = aSize.Width(); for ( n = nOwnChildren; n < nChildren; n++ ) { |