summaryrefslogtreecommitdiff
path: root/vcl/source/control/field2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/field2.cxx')
-rw-r--r--vcl/source/control/field2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 8699725b239c..cab30fd1bed8 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -1965,7 +1965,7 @@ static bool ImplCutTimePortion( OUStringBuffer& _rStr, sal_Int32 _nSepPos, bool
OUString sPortion(_rStr.getStr(), _nSepPos );
if (_nSepPos < _rStr.getLength())
- _rStr = _rStr.copy(_nSepPos + 1);
+ _rStr.remove(0, _nSepPos + 1);
else
_rStr.truncate();