summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-20 14:55:08 +0100
committerDavid Tardon <dtardon@redhat.com>2014-08-20 09:08:42 -0500
commit3b6748a4002f4b61ae477da7a84b4a0feccdef12 (patch)
treedd19da18f0f63f3ba2e926ec22be6263974d7a2d /extensions
parent087c897d3da7a81b63fc79442127eb880d5c3155 (diff)
Resolves: fdo#79227 labels are truncated
Change-Id: I9d5cd9491325aab6c844c889bf4db6baab2e75c8 (cherry picked from commit 71804294c79136ef43a8f91b5c961e266d32187a) Reviewed-on: https://gerrit.libreoffice.org/11043 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/toolbar.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 3db37dfeb6d1..e9d2e7b09aaa 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -220,15 +220,13 @@ BibToolBar::BibToolBar(Window* pParent, Link aLink, WinBits nStyle):
aEdQuery.Show();
OUString aStr=GetItemText(TBC_FT_SOURCE);
- Rectangle aRect=GetItemRect(TBC_FT_SOURCE);
aFtSource.SetText(aStr);
- aFtSource.SetSizePixel(aRect.GetSize());
+ aFtSource.SetSizePixel(aFtSource.get_preferred_size());
aFtSource.SetBackground(Wallpaper( COL_TRANSPARENT ));
aStr=GetItemText(TBC_FT_QUERY);
- aRect=GetItemRect(TBC_FT_QUERY);
aFtQuery.SetText(aStr);
- aFtQuery.SetSizePixel(aRect.GetSize());
+ aFtQuery.SetSizePixel(aFtQuery.get_preferred_size());
aFtQuery.SetBackground(Wallpaper( COL_TRANSPARENT ));
SetItemWindow(TBC_FT_SOURCE,&aFtSource);