summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlexprt.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-07-26 11:25:51 +0100
committerNoel Power <noel.power@suse.com>2013-07-26 13:15:19 +0100
commitb5fffdb8d0438a2fe933a5742d41fe50a14b71f3 (patch)
treeef725b02682711fe28f4444ca987b6e4d8d17ea0 /sc/source/filter/xml/xmlexprt.cxx
parent76aad98dcbe03ceb17fdf975eb4a1281f9814844 (diff)
fix for fdo#62729 reference pos can point to non existing table
there is an existing function ( called at least from uno names api also ) that updates the tab pos, calling that seems to fix this problem Change-Id: I6f6f31895eda9c338eeabd3f3285bf2c9eb23b7e
Diffstat (limited to 'sc/source/filter/xml/xmlexprt.cxx')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 194323871976..23fd58076b8a 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3727,6 +3727,7 @@ void ScXMLExport::WriteNamedRange(ScRangeName* pRangeName)
AddAttribute(sAttrName, it->second->GetName());
OUString sBaseCellAddress;
+ it->second->ValidateTabRefs();
ScRangeStringConverter::GetStringFromAddress( sBaseCellAddress, it->second->GetPos(), pDoc,
FormulaGrammar::CONV_OOO, ' ', false, SCA_ABS_3D);
AddAttribute(XML_NAMESPACE_TABLE, XML_BASE_CELL_ADDRESS, sBaseCellAddress);