diff options
Diffstat (limited to 'connectivity/source/drivers/calc/CTable.cxx')
-rw-r--r-- | connectivity/source/drivers/calc/CTable.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx index cbfb9f976ba1..ca33fa09ae0f 100644 --- a/connectivity/source/drivers/calc/CTable.cxx +++ b/connectivity/source/drivers/calc/CTable.cxx @@ -452,8 +452,8 @@ void lcl_SetValue( ORowSetValue& rValue, const Reference<XSpreadsheet>& xSheet, { ::rtl::OUStringBuffer aBuffer(2); aBuffer.setLength( 2 ); - aBuffer.setCharAt( 0, (sal_Unicode) ( 'A' + ( nColumn / 26 ) - 1 ) ); - aBuffer.setCharAt( 1, (sal_Unicode) ( 'A' + ( nColumn % 26 ) ) ); + aBuffer[0] = (sal_Unicode) ( 'A' + ( nColumn / 26 ) - 1 ); + aBuffer[1] = (sal_Unicode) ( 'A' + ( nColumn % 26 ) ); return aBuffer.makeStringAndClear(); } } |