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

Jochen Nitschke j.nitschke+logerrit at ok.de
Thu Mar 2 06:35:30 UTC 2017


 sw/source/ui/frmdlg/wrap.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4d96fa0cb80f38ee94ec59565b2391848663378d
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Wed Mar 1 19:49:29 2017 +0100

    sw: replace hardcoded 1 with TRISTATE_TRUE
    
    Change-Id: I071f787f6a00acc9827fbce9e6993d33450ab7b5
    Reviewed-on: https://gerrit.libreoffice.org/34764
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx
index e29a814..881d4eb 100644
--- a/sw/source/ui/frmdlg/wrap.cxx
+++ b/sw/source/ui/frmdlg/wrap.cxx
@@ -385,7 +385,7 @@ bool SwWrapTabPage::FillItemSet(SfxItemSet *rSet)
     if ( m_bDrawMode )
     {
         bool bChecked = m_pWrapTransparentCB->IsChecked() && m_pWrapTransparentCB->IsEnabled();
-        if ((m_pWrapTransparentCB->GetSavedValue() == 1) != bChecked)
+        if ((m_pWrapTransparentCB->GetSavedValue() == TRISTATE_TRUE) != bChecked)
             bModified |= nullptr != rSet->Put(SfxInt16Item(FN_DRAW_WRAP_DLG, bChecked ? 0 : 1));
     }
 


More information about the Libreoffice-commits mailing list