diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-28 19:36:35 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-28 21:03:09 -0500 |
commit | 9518535d2fa9f5d52fec548fc85df5a086ec4c1c (patch) | |
tree | 91c9f087486b79668cf7fb4e40665de09e4772e4 /sc | |
parent | 6fc139f068de791604157b70d331ebb171fc1049 (diff) |
Fixed incorrect truncation of text in field button.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/fieldwnd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx index f68dd87f5d6c..a69b7a1f9a53 100644 --- a/sc/source/ui/dbgui/fieldwnd.cxx +++ b/sc/source/ui/dbgui/fieldwnd.cxx @@ -614,7 +614,7 @@ void ScDPFieldControlBase::DrawField( do { sal_Int32 nCurrLen = (nMinLen + nMaxLen) / 2; - rtl::OUStringBuffer aBuf(aText.copy(0, nCurrLen)); + rtl::OUStringBuffer aBuf(rText.maText.copy(0, nCurrLen)); aBuf.appendAscii("..."); aText = aBuf.makeStringAndClear(); nLabelWidth = rDev.GetTextWidth( aText ); |