For now, we only import normal named expressions in sheet local scope.

This commit is contained in:
Kohei Yoshida 2011-03-11 11:19:05 -05:00
parent 50da3d1e56
commit 596fcdebaa

View file

@ -67,6 +67,10 @@ void ScXMLNamedExpressionsContext::SheetLocalInserter::insert(ScMyNamedExpressio
::boost::scoped_ptr<ScMyNamedExpression> p(pExp);
if (p->sRangeType.getLength() > 0)
// For now, we only accept normal named expressions.
return;
if (mpDoc && !mrRangeName.findByName(p->sName))
{
// Insert a new name.