diff options
author | Josh Heidenreich <josh.sickmate@gmail.com> | 2012-02-08 18:48:37 +1030 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-02-08 15:20:16 +0100 |
commit | 09be8bbee6b49680dd2a16f5b4c2c2f8d9eca72c (patch) | |
tree | 061012c7c1c4713b4c05fbbde799df97b5130e54 /sfx2 | |
parent | 463f9ff03424a1de5b3d4616202f315adea7f2cd (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')
-rw-r--r-- | sfx2/source/dialog/alienwarn.cxx | 4 |
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 ); } |