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

tdf#120651 have to sort radiogroup by tab position

Change-Id: I8fcf4c4b186d8292c85babaa90e98396a5fbc71b
Reviewed-on: https://gerrit.libreoffice.org/61882
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 647fc417
......@@ -268,6 +268,8 @@ public:
class VCL_DLLPUBLIC RadioButton : public Button
{
private:
friend class VclBuilder;
std::shared_ptr< std::vector< VclPtr< RadioButton > > > m_xGroup;
tools::Rectangle maStateRect;
tools::Rectangle maMouseRect;
......
......@@ -479,7 +479,10 @@ VclBuilder::VclBuilder(vcl::Window *pParent, const OUString& sUIDir, const OUStr
if (m_bLegacy)
pOne->group(*pOther);
else
{
pOther->group(*pOne);
std::stable_sort(pOther->m_xGroup->begin(), pOther->m_xGroup->end(), sortIntoBestTabTraversalOrder(this));
}
}
}
......
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