Blame SOURCES/0183-sw-outline-SwViewOption-SetOnlineSpell.patch

135360
From 447fa6b3fb93262d548441d4778fc5d429b5aef3 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Tue, 6 Oct 2015 11:13:54 +0200
135360
Subject: [PATCH 183/398] sw: outline SwViewOption::SetOnlineSpell()
135360
135360
Change-Id: Ic81b039e9a1b592ca52ab684ddb45ee44c7714df
135360
(cherry picked from commit 0cf63ba224cb01377e3e6da68b0e72a3ed7e30af)
135360
---
135360
 sw/inc/viewopt.hxx                  | 3 +--
135360
 sw/source/uibase/config/viewopt.cxx | 5 +++++
135360
 2 files changed, 6 insertions(+), 2 deletions(-)
135360
135360
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
135360
index 64c1e269f2f6..dee2189a6795 100644
135360
--- a/sw/inc/viewopt.hxx
135360
+++ b/sw/inc/viewopt.hxx
135360
@@ -300,8 +300,7 @@ public:
135360
 
135360
     inline bool IsOnlineSpell() const
135360
         { return !bReadonly && (nCoreOptions & VIEWOPT_1_ONLINESPELL) != 0; }
135360
-    inline void SetOnlineSpell( bool b )
135360
-        { b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL); }
135360
+    void SetOnlineSpell( bool b );
135360
 
135360
     inline bool IsViewMetaChars() const
135360
         { return !bReadonly && (nCoreOptions & VIEWOPT_1_VIEWMETACHARS) != 0; }
135360
diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx
135360
index 7597589f0657..c5080e84abd4 100644
135360
--- a/sw/source/uibase/config/viewopt.cxx
135360
+++ b/sw/source/uibase/config/viewopt.cxx
135360
@@ -312,6 +312,11 @@ bool SwViewOption::IsAutoCompleteWords()
135360
     return rFlags.bAutoCmpltCollectWords;
135360
 }
135360
 
135360
+void SwViewOption::SetOnlineSpell(bool b)
135360
+{
135360
+    b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL);
135360
+}
135360
+
135360
 AuthorCharAttr::AuthorCharAttr() :
135360
     nItemId (SID_ATTR_CHAR_UNDERLINE),
135360
     nAttr   (UNDERLINE_SINGLE),
135360
-- 
135360
2.12.0
135360