]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.h
The most important change in this changeset is that InsetCollapsable::getLayout
[features.git] / src / insets / InsetText.h
index 0853144c9b1ff9534e147917a964da53f07cb748..d133d8fb0f4524721072a36ae62f008f84db58ef 100644 (file)
@@ -135,12 +135,12 @@ public:
        ParagraphList const & paragraphs() const;
        ///
        bool insetAllowed(InsetCode) const { return true; }
-       ///
-       bool allowSpellCheck() const { return true; }
+       /// Allow spellchecking, except for insets with latex_language
+       bool allowSpellCheck() const { return !forceLTR(); }
        ///
        virtual bool isMacroScope() const { return false; }
        ///
-       virtual bool allowMultiPar() const { return true; }
+       virtual bool allowMultiPar() const { return getLayout().isMultiPar(); }
 
        /// Update the counters of this inset and of its contents
        virtual void updateLabels(ParIterator const &);