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: ...@@ -82,6 +82,9 @@ private:
void SetSingleLinkable(); void SetSingleLinkable();
void SetRangeLinkable(); void SetRangeLinkable();
/**
* Check if any of its parents is linked or repeated.
*/
bool IsParentDirty(SvLBoxEntry* pEntry) const; bool IsParentDirty(SvLBoxEntry* pEntry) const;
DECL_LINK(GetFocusHdl, Control*); DECL_LINK(GetFocusHdl, Control*);
......
...@@ -336,6 +336,11 @@ bool ScXMLSourceDlg::IsParentDirty(SvLBoxEntry* pEntry) const ...@@ -336,6 +336,11 @@ bool ScXMLSourceDlg::IsParentDirty(SvLBoxEntry* pEntry) const
// This parent is already linked. // This parent is already linked.
return true; return true;
} }
if (pUserData->meType == ScOrcusXMLTreeParam::ElementRepeat)
{
// This is a repeat element.
return true;
}
pParent = maLbTree.GetParent(pParent); pParent = maLbTree.GetParent(pParent);
} }
return false; 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