]> git.lyx.org Git - lyx.git/commitdiff
* src/insets/InsetCollapsable.h:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 28 Apr 2008 18:49:23 +0000 (18:49 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 28 Apr 2008 18:49:23 +0000 (18:49 +0000)
- exclude insets with latex_language from spell checking (bug 4810).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24543 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.h

index fa8cf0fc50ca1c866b819135e3aad7102ee8f80d..c5b9975f33fe561e19aeb9ec96e585644b9f8b5b 100644 (file)
@@ -118,8 +118,8 @@ public:
        /// (status_), autoOpen_ and openinlined_, and of
        /// course decoration().
        Geometry geometry() const;
-       ///
-       bool allowSpellCheck() const { return true; }
+       /// Allow spellchecking, except for insets with latex_language
+       bool allowSpellCheck() const { return !forceLTR(); }
        ///
        bool allowMultiPar() const;
        ///