Fixed incorrect truncation of text in field button.

This commit is contained in:
Kohei Yoshida
2012-02-28 19:36:35 -05:00
parent 6fc139f068
commit 9518535d2f

View File

@@ -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 );