[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sfx2/source

Petr Mladek pmladek at kemper.freedesktop.org
Wed Feb 8 06:24:31 PST 2012


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

New commits:
commit cce15c38036c5d7de1405012dc448f3fb3ab3476
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.
    
    Signed-off-by: Petr Mladek <pmladek at suse.cz>

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