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
if (pA->GetParent() == pB->GetParent())
{
const VclFrame *pFrameParent = dynamic_cast<const VclFrame*>(pA->GetParent());
if (pFrameParent && pA == pFrameParent->get_label_widget())
return true;
if (pFrameParent)
{
const Window *pLabel = pFrameParent->get_label_widget();
int nFramePosA = (pA == pLabel) ? 0 : 1;
int nFramePosB = (pB == pLabel) ? 0 : 1;
return nFramePosA < nFramePosB;
}
}
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