sw/source/ui/table/tabledlg.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 508cb85217f0b1ed91a346520a8661e60f32f7ba
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Jul 16 13:57:06 2018 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Jul 16 18:02:42 2018 +0200

    tdf#118635 relative checkbox disabled on reopen
    
    Change-Id: Ic52737e5122b1ae37390061a5f7cf17b69e7e665
    Reviewed-on: https://gerrit.libreoffice.org/57498
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
index ee4fb784772f..1690504aff99 100644
--- a/sw/source/ui/table/tabledlg.cxx
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -175,14 +175,14 @@ IMPL_LINK( SwFormatTablePage, RelWidthClickHdl, 
weld::ToggleButton&, rBtn, void
     bModified = true;
 }
 
-IMPL_LINK(SwFormatTablePage, AutoClickHdl, weld::ToggleButton&, rControl, void)
+IMPL_LINK_NOARG(SwFormatTablePage, AutoClickHdl, weld::ToggleButton&, void)
 {
     bool bRestore = true,
          bLeftEnable = false,
          bRightEnable= false,
          bWidthEnable= false,
          bOthers = true;
-    if (&rControl == m_xFullBtn.get())
+    if (m_xFullBtn->get_active())
     {
         m_xLeftMF->SetPrcntValue(0);
         m_xRightMF->SetPrcntValue(0);
@@ -191,26 +191,26 @@ IMPL_LINK(SwFormatTablePage, AutoClickHdl, 
weld::ToggleButton&, rControl, void)
         bFull = true;
         bRestore = false;
     }
-    else if (&rControl == m_xLeftBtn.get())
+    else if (m_xLeftBtn->get_active())
     {
         bRightEnable = bWidthEnable = true;
         m_xLeftMF->SetPrcntValue(0);
     }
-    else if (&rControl == m_xFromLeftBtn.get())
+    else if (m_xFromLeftBtn->get_active())
     {
         bLeftEnable = bWidthEnable = true;
         m_xRightMF->SetPrcntValue(0);
     }
-    else if (&rControl == m_xRightBtn.get())
+    else if (m_xRightBtn->get_active())
     {
         bLeftEnable = bWidthEnable = true;
         m_xRightMF->SetPrcntValue(0);
     }
-    else if (&rControl == m_xCenterBtn.get())
+    else if (m_xCenterBtn->get_active())
     {
         bLeftEnable = bWidthEnable = true;
     }
-    else if (&rControl == m_xFreeBtn.get())
+    else if (m_xFreeBtn->get_active())
     {
         RightModify();
         bLeftEnable = true;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to