Kaydet (Commit) 8c4f2093 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#61688 get strict ordering right

Change-Id: Ibb3e74e98762358614713688d64e50db21025f1d
üst aebfef8d
...@@ -1441,8 +1441,13 @@ bool VclBuilder::sortIntoBestTabTraversalOrder::operator()(const Window *pA, con ...@@ -1441,8 +1441,13 @@ bool VclBuilder::sortIntoBestTabTraversalOrder::operator()(const Window *pA, con
if (pA->GetParent() == pB->GetParent()) if (pA->GetParent() == pB->GetParent())
{ {
const VclFrame *pFrameParent = dynamic_cast<const VclFrame*>(pA->GetParent()); const VclFrame *pFrameParent = dynamic_cast<const VclFrame*>(pA->GetParent());
if (pFrameParent && pA == pFrameParent->get_label_widget()) if (pFrameParent)
return true; {
const Window *pLabel = pFrameParent->get_label_widget();
int nFramePosA = (pA == pLabel) ? 0 : 1;
int nFramePosB = (pB == pLabel) ? 0 : 1;
return nFramePosA < nFramePosB;
}
} }
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