summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/button.hxx2
-rw-r--r--vcl/source/window/builder.cxx3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index ddc61afdd02d..38c094a2d9dc 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -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;
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index a57984c61925..cc4e9d18f8a4 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -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));
+ }
}
}