diff options
Diffstat (limited to 'vcl/source/control/field.cxx')
-rw-r--r-- | vcl/source/control/field.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index ed003e5d74e6..1e2ab5a237c5 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -894,12 +894,14 @@ namespace nTextLen = OUString(OUString::number(rFormatter.GetMin())).getLength(); string::padToLength(aBuf, nTextLen, '9'); Size aMinTextSize = rSpinField.CalcMinimumSizeForText( - rFormatter.CreateFieldText(aBuf.makeStringAndClear().toInt64())); + rFormatter.CreateFieldText(aBuf.toString().toInt64())); + aBuf.setLength(0); nTextLen = OUString(OUString::number(rFormatter.GetMax())).getLength(); string::padToLength(aBuf, nTextLen, '9'); Size aMaxTextSize = rSpinField.CalcMinimumSizeForText( - rFormatter.CreateFieldText(aBuf.makeStringAndClear().toInt64())); + rFormatter.CreateFieldText(aBuf.toString().toInt64())); + aBuf.setLength(0); Size aRet(std::max(aMinTextSize.Width(), aMaxTextSize.Width()), std::max(aMinTextSize.Height(), aMaxTextSize.Height())); |