summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmldpimp.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-08-15 08:11:27 +0000
committerNiklas Nebel <nn@openoffice.org>2001-08-15 08:11:27 +0000
commitb863eca93dc76080944554a458334f17a2be889c (patch)
tree6f0e4e72d651b67d0c9843442fc6f7dc8fdd029e /sc/source/filter/xml/xmldpimp.cxx
parentf779e8291f526d31378d515e11b33f1d24eddd08 (diff)
#91045# AddDimension: mark as duplicate if name exists
Diffstat (limited to 'sc/source/filter/xml/xmldpimp.cxx')
-rw-r--r--sc/source/filter/xml/xmldpimp.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmldpimp.cxx b/sc/source/filter/xml/xmldpimp.cxx
index 54ac26a0b3b9..cf509ca73b59 100644
--- a/sc/source/filter/xml/xmldpimp.cxx
+++ b/sc/source/filter/xml/xmldpimp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldpimp.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: sab $ $Date: 2001-07-26 06:51:19 $
+ * last change: $Author: nn $ $Date: 2001-08-15 09:11:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -284,6 +284,20 @@ void ScXMLDataPilotTableContext::SetButtons()
}
}
+void ScXMLDataPilotTableContext::AddDimension(ScDPSaveDimension* pDim)
+{
+ if (pDPSave)
+ {
+ // #91045# if a dimension with that name has already been inserted,
+ // mark the new one as duplicate
+ if ( !pDim->IsDataLayout() &&
+ pDPSave->GetExistingDimensionByName(pDim->GetName()) )
+ pDim->SetDupFlag( TRUE );
+
+ pDPSave->AddDimension(pDim);
+ }
+}
+
void ScXMLDataPilotTableContext::EndElement()
{
if (bTargetRangeAddress)