summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLExport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/chart/SchXMLExport.cxx')
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 91b203bc2d42..198f6a14c4e3 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -2433,7 +2433,7 @@ void SchXMLExportHelper_Impl::exportAxis(
lcl_exportNumberFormat( u"NumberFormat"_ustr, rAxisProps, mrExport );
aPropertyStates = mxExpPropMapper->Filter(mrExport, rAxisProps);
- if (!maSrcShellID.isEmpty() && !maDestShellID.isEmpty() && maSrcShellID != maDestShellID)
+ if (!maDestShellID.isEmpty() && (!maSrcShellID.isEmpty() || maSrcShellID != maDestShellID))
{
// Disable link to source number format property when pasting to
// a different doc shell. These shell ID's should be both empty
@@ -2850,6 +2850,13 @@ void SchXMLExportHelper_Impl::exportSeries(
if( mxExpPropMapper.is())
aPropertyStates = mxExpPropMapper->Filter(mrExport, xPropSet);
+ if (!maDestShellID.isEmpty() && (!maSrcShellID.isEmpty() || maSrcShellID != maDestShellID))
+ {
+ // Disable link to source number format property when pasting to
+ // a different doc shell. These shell ID's should be both empty
+ // during real ODF export.
+ disableLinkedNumberFormat(aPropertyStates, mxExpPropMapper->getPropertySetMapper());
+ }
}
if( bExportContent )