sw/source/ui/frmdlg/wrap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4d96fa0cb80f38ee94ec59565b2391848663378d Author: Jochen Nitschke <[email protected]> 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 <[email protected]> Reviewed-by: Noel Grandin <[email protected]> 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)); } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
