summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorJosh Heidenreich <josh.sickmate@gmail.com>2012-02-08 18:48:37 +1030
committerPetr Mladek <pmladek@suse.cz>2012-02-08 15:20:16 +0100
commit09be8bbee6b49680dd2a16f5b4c2c2f8d9eca72c (patch)
tree061012c7c1c4713b4c05fbbde799df97b5130e54 /sfx2/source/dialog
parent463f9ff03424a1de5b3d4616202f315adea7f2cd (diff)
Fix fdo#45117 - Alien save dialog buttons run off the edge
Adjusts the width of the dialog to be wider, if required.
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/alienwarn.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/dialog/alienwarn.cxx b/sfx2/source/dialog/alienwarn.cxx
index e913c88ef243..3e99575412a2 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 );
}