diff options
Diffstat (limited to 'vcl/source/control/field.cxx')
-rw-r--r-- | vcl/source/control/field.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index c4ce25c48a5e..7bd182a9e975 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -112,23 +112,23 @@ bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue, // If in "a b/c" format. if(nFracNumPos != -1 ) { - aStr1.append(aStr.getStr(), nFracNumPos); - aStrNum.append(aStr.getStr()+nFracNumPos+1, nFracDivPos-nFracNumPos-1); - aStrDenom.append(aStr.getStr()+nFracDivPos+1); + aStr1.appendCopy(aStr, 0, nFracNumPos); + aStrNum.appendCopy(aStr, nFracNumPos+1, nFracDivPos-nFracNumPos-1); + aStrDenom.appendCopy(aStr, nFracDivPos+1); } // "a/b" format, or not a fraction at all else { - aStrNum.append(aStr.getStr(), nFracDivPos); - aStrDenom.append(aStr.getStr()+nFracDivPos+1); + aStrNum.appendCopy(aStr, 0, nFracDivPos); + aStrDenom.appendCopy(aStr, nFracDivPos+1); } } // parse decimal strings else if ( nDecPos >= 0) { - aStr1.append(aStr.getStr(), nDecPos); - aStr2.append(aStr.getStr()+nDecPos+1); + aStr1.appendCopy(aStr, 0, nDecPos); + aStr2.appendCopy(aStr, nDecPos+1); } else aStr1 = aStr; |