summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-20 10:39:50 +0200
committerNoel Grandin <noel@peralex.com>2015-08-20 10:39:50 +0200
commit77634c4cfd25f3849419f943921e53f80dfd1799 (patch)
tree13abfc2fe01b287b3dd2b70767bd9c9ea2e821fe /sw
parentc06108b880e144e5ad56e35f842ad15f05b6e899 (diff)
loplugin:simplifybool
Change-Id: I7bb930f3b062dda9e46f517a1ea1dacb0d64de7f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/config/viewopt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx
index 9bd36e8f0ebd..6f29c45eb8cc 100644
--- a/sw/source/uibase/config/viewopt.cxx
+++ b/sw/source/uibase/config/viewopt.cxx
@@ -200,7 +200,7 @@ SwViewOption::SwViewOption() :
aSnapSize.Width() = aSnapSize.Height() = 567; // 1 cm
nDivisionX = nDivisionY = 1;
- bSelectionInReadonly = !utl::ConfigManager::IsAvoidConfig() ? SW_MOD()->GetAccessibilityOptions().IsSelectionInReadonly() : false;
+ bSelectionInReadonly = !utl::ConfigManager::IsAvoidConfig() && SW_MOD()->GetAccessibilityOptions().IsSelectionInReadonly();
bIdle = true;