summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLTextColumnsExport.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-04-18 06:49:37 +0000
committerRüdiger Timm <rt@openoffice.org>2007-04-18 06:49:37 +0000
commit1a44d354073bc82fd2b692927467f7c59c7426f0 (patch)
treebedb08a6cdd1a0d3824e7d19cbf419e1da3f36ac /xmloff/source/text/XMLTextColumnsExport.cxx
parentee8ef0e86c659facde3d86347c0eb26a4b647098 (diff)
INTEGRATION: CWS swqbugfix01_SRC680 (1.11.66); FILE MERGED
2007/03/29 11:15:20 ama 1.11.66.1: Fix #139724#: Minimum number of columns is 1, not 0!
Diffstat (limited to 'xmloff/source/text/XMLTextColumnsExport.cxx')
-rw-r--r--xmloff/source/text/XMLTextColumnsExport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/text/XMLTextColumnsExport.cxx b/xmloff/source/text/XMLTextColumnsExport.cxx
index d4cfa7a211c1..114281704f6a 100644
--- a/xmloff/source/text/XMLTextColumnsExport.cxx
+++ b/xmloff/source/text/XMLTextColumnsExport.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: XMLTextColumnsExport.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: vg $ $Date: 2006-11-21 17:38:21 $
+ * last change: $Author: rt $ $Date: 2007-04-18 07:49:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -106,7 +106,7 @@ void XMLTextColumnsExport::exportXML( const Any& rAny )
sal_Int32 nCount = aColumns.getLength();
OUStringBuffer sValue;
- GetExport().GetMM100UnitConverter().convertNumber( sValue, nCount );
+ GetExport().GetMM100UnitConverter().convertNumber( sValue, nCount ? nCount : 1 );
GetExport().AddAttribute( XML_NAMESPACE_FO, XML_COLUMN_COUNT,
sValue.makeStringAndClear() );