diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-30 17:08:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-31 20:48:32 +0200 |
commit | 9d8ea0b8ef6388e763a095e51ce9e8f85f86ad49 (patch) | |
tree | 46b7bfb8db70ae118a88bd3a767dba0ecdaa0662 | |
parent | d9e6d51c7a49d612fbc0b5a44d1c2b85e1aac899 (diff) |
welded radio buttons are in gtk-style groups
i.e. everything in the group is grouped with the leader of the group
so group to that one to get tab order right
Change-Id: I289d8ce5e5957e3f779c4caa435c1210d0dc7076
Reviewed-on: https://gerrit.libreoffice.org/52158
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | vcl/source/window/builder.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 8f982e435fe2..bd0e72c22ada 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -314,7 +314,12 @@ VclBuilder::VclBuilder(vcl::Window *pParent, const OUString& sUIDir, const OUStr RadioButton *pOther = get<RadioButton>(elem.m_sValue); SAL_WARN_IF(!pOne || !pOther, "vcl", "missing member of radiobutton group"); if (pOne && pOther) - pOne->group(*pOther); + { + if (m_bLegacy) + pOne->group(*pOther); + else + pOther->group(*pOne); + } } //Set ComboBox models when everything has been imported |