summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-03-01 19:49:29 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-02 06:34:48 +0000
commit4d96fa0cb80f38ee94ec59565b2391848663378d (patch)
treed67127c2c11409cd8ea8fdc71b0cd930d8d4edf7
parent5ee57cabb40fefbba401cbcf8b181e02ad4f1f5d (diff)
sw: replace hardcoded 1 with TRISTATE_TRUE
Change-Id: I071f787f6a00acc9827fbce9e6993d33450ab7b5 Reviewed-on: https://gerrit.libreoffice.org/34764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sw/source/ui/frmdlg/wrap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx
index e29a814a991e..881d4ebcb212 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));
}