diff options
-rw-r--r-- | vcl/source/window/msgbox.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index 2c20baba5da7..8f82b270511b 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -327,10 +327,8 @@ void MessBox::ImplPosControls() } // Style fuer VCLMultiLineEdit ermitteln - mpVCLMultiLineEdit = new VCLMultiLineEdit( this, nWinStyle ); - mpVCLMultiLineEdit->SetText( aMessText ); - aMEditSize = mpVCLMultiLineEdit->CalcMinimumSize(); - + aMEditSize.Width() = aTextInfo.GetMaxLineWidth()+1; + aMEditSize.Height() = aFormatRect.GetHeight(); aPageSize.Width() = aImageSize.Width(); if ( aMEditSize.Height() < aImageSize.Height() ) { @@ -400,7 +398,8 @@ void MessBox::ImplPosControls() mpCheckBox->Show(); } - + mpVCLMultiLineEdit = new VCLMultiLineEdit( this, nWinStyle ); + mpVCLMultiLineEdit->SetText( aMessText ); mpVCLMultiLineEdit->SetPosSizePixel( aTextPos, aMEditSize ); mpVCLMultiLineEdit->Show(); mpVCLMultiLineEdit->SetPaintTransparent(sal_True); |