summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-03-19 13:39:08 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2019-03-19 18:17:23 +0100
commit8ec7648f0d8580950c1bdd2fb9de92953cc90914 (patch)
tree59f978e3ca6bf9a2112e17818e95dfa380493f52 /sw
parent6a864828e2976be16c12ecf028ebbedc95fdae61 (diff)
Make condition logic slightly clearer
Change-Id: I8c35ddf047751cf06707efbbe11730414767a0af Reviewed-on: https://gerrit.libreoffice.org/69416 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doc.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index 3691940ef2fb..fb544a775b0c 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1830,10 +1830,10 @@ SwDoc::GetVbaEventProcessor()
void SwDoc::SetMissingDictionaries( bool bIsMissing )
{
- if( bIsMissing && meDictionaryMissing == MissingDictionary::Undefined )
- meDictionaryMissing = MissingDictionary::True;
- else if( !bIsMissing )
+ if (!bIsMissing)
meDictionaryMissing = MissingDictionary::False;
+ else if (meDictionaryMissing == MissingDictionary::Undefined)
+ meDictionaryMissing = MissingDictionary::True;
};