diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2010-12-15 15:30:00 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@hemulen.(none)> | 2010-12-15 15:30:00 +0200 |
commit | f51f9bf2e5b56d19d59c535b6acc2996e082f020 (patch) | |
tree | 629acd8e58687838dc2feb4d0fbebbbff94732dd /sfx2 | |
parent | 38fceb9f337afcd69d4e8241fad1cf951502f741 (diff) |
In case of a missing "about" image, don't make the dialog zero width
Fixes fdo#31518.
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/about.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/dialog/about.cxx b/sfx2/source/dialog/about.cxx index de639ca67235..95dd2f8786f7 100644 --- a/sfx2/source/dialog/about.cxx +++ b/sfx2/source/dialog/about.cxx @@ -166,6 +166,10 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS // determine size and position of the dialog & elements Size aAppLogoSiz = aAppLogo.GetSizePixel(); + + if (aAppLogoSiz.Width() < 300) + aAppLogoSiz.Width() = 300; + Size aOutSiz = GetOutputSizePixel(); aOutSiz.Width() = aAppLogoSiz.Width(); |