summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-02-21 12:51:38 +0000
committerNiklas Nebel <nn@openoffice.org>2001-02-21 12:51:38 +0000
commita4ddd8b1fa7870f3fa33a1bf9ab097d0be0f3b3c (patch)
tree80d96d6275d9faf8fedd2d8f843cdb623b26e73b
parent1adf33af988210ffc4a4cec51e77b2f16a4f287a (diff)
set length in generation of column names
-rw-r--r--connectivity/source/drivers/calc/CTable.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx
index 80ee4b618ffc..282e2d93afd9 100644
--- a/connectivity/source/drivers/calc/CTable.cxx
+++ b/connectivity/source/drivers/calc/CTable.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: CTable.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: nn $ $Date: 2001-02-21 11:35:24 $
+ * last change: $Author: nn $ $Date: 2001-02-21 13:51:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -477,6 +477,7 @@ void lcl_SetValue( file::ORowSetValue& rValue, const Reference<XSpreadsheet>& xS
else
{
::rtl::OUStringBuffer aBuffer(2);
+ aBuffer.setLength( 2 );
aBuffer.setCharAt( 0, (sal_Unicode) ( 'A' + ( nColumn / 26 ) - 1 ) );
aBuffer.setCharAt( 1, (sal_Unicode) ( 'A' + ( nColumn % 26 ) ) );
return aBuffer.makeStringAndClear();