summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-20 14:55:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-20 14:56:19 +0100
commit71804294c79136ef43a8f91b5c961e266d32187a (patch)
tree78970759529ac187f52233ec0dae4c60413e4792 /extensions
parent893d5f9973e75a61f7d21ac146ca329627a9c440 (diff)
Resolves: fdo#79227 labels are truncated
Change-Id: I9d5cd9491325aab6c844c889bf4db6baab2e75c8
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 d08505bc5bf2..965700a5f385 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -216,15 +216,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);