diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-11 19:44:14 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-11 19:54:48 +0400 |
commit | 607e387412606c92a2ebd6fcc1d41743f33a4a72 (patch) | |
tree | 1a8c8103d8c0ffda6e71ae656b98844c8db68021 /vcl | |
parent | 57c3b583f1f69edd32b2a54253850e1b3b202255 (diff) |
message boxes always showed one line of text
restore the old code, use aTextInfo to determine the width, as before.
(regression from 2854d8b17cb873a5d61e06f9570ac344f054d666)
Change-Id: I91def4db307cb4d1af74d79831afa3b9fd68bcbc
Diffstat (limited to 'vcl')
-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); |