Kaydet (Commit) 468dd7ee authored tarafından Kohei Yoshida's avatar Kohei Yoshida

I need to check for repeating parent elements too.

Change-Id: I52e87c93e6f3d0108cf517c33f605490dd9a1fc4
üst 4f051631
......@@ -82,6 +82,9 @@ private:
void SetSingleLinkable();
void SetRangeLinkable();
/**
* Check if any of its parents is linked or repeated.
*/
bool IsParentDirty(SvLBoxEntry* pEntry) const;
DECL_LINK(GetFocusHdl, Control*);
......
......@@ -336,6 +336,11 @@ bool ScXMLSourceDlg::IsParentDirty(SvLBoxEntry* pEntry) const
// This parent is already linked.
return true;
}
if (pUserData->meType == ScOrcusXMLTreeParam::ElementRepeat)
{
// This is a repeat element.
return true;
}
pParent = maLbTree.GetParent(pParent);
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment