[Libreoffice-commits] .: sfx2/source

Petr Mladek pmladek at kemper.freedesktop.org
Wed Feb 8 06:20:38 PST 2012


 sfx2/source/dialog/alienwarn.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 09be8bbee6b49680dd2a16f5b4c2c2f8d9eca72c
Author: Josh Heidenreich <josh.sickmate at gmail.com>
Date:   Wed Feb 8 18:48:37 2012 +1030

    Fix fdo#45117 - Alien save dialog buttons run off the edge
    
    Adjusts the width of the dialog to be wider, if required.

diff --git a/sfx2/source/dialog/alienwarn.cxx b/sfx2/source/dialog/alienwarn.cxx
index e913c88..3e99575 100644
--- a/sfx2/source/dialog/alienwarn.cxx
+++ b/sfx2/source/dialog/alienwarn.cxx
@@ -174,6 +174,10 @@ void SfxAlienWarningDialog::InitSize()
     // new size of the dialog
     aNewSize = GetSizePixel();
     aNewSize.Height() -= nDelta;
+    if (aPos.X() + nTxtW + IMPL_EXTRA_BUTTON_WIDTH > aNewSize.Width())
+    {
+        aNewSize.Width() = aPos.X() + nTxtW + IMPL_EXTRA_BUTTON_WIDTH;
+    }
     SetSizePixel( aNewSize );
 
 }


More information about the Libreoffice-commits mailing list