[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Sat Mar 31 18:48:52 UTC 2018


 vcl/source/window/builder.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 9d8ea0b8ef6388e763a095e51ce9e8f85f86ad49
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 30 17:08:43 2018 +0100

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>

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


More information about the Libreoffice-commits mailing list