]> git.lyx.org Git - lyx.git/blobdiff - src/dociterator.h
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / dociterator.h
index 6bca4d3e185f0fa3e7e2107525f7ba4bea9c57f5..2195e0b40fb0e9c297a4a4c5d7717a4c43b047a4 100644 (file)
@@ -125,10 +125,14 @@ public:
        ///
        void boundary(bool b) { boundary_ = b; }
 
-       /// are we in mathed?
-       bool inMathed() const;
-       /// are we in texted?
-       bool inTexted() const;
+       // the two methods below have been inlined out because of
+       // profiling results under linux when opening a document.
+       /// are we in mathed?.
+       bool inMathed() const
+       { return !empty() && inset().inMathed(); }
+       /// are we in texted?.
+       bool inTexted() const
+       { return !empty() && !inset().inMathed(); }
 
        //
        // math-specific part