///
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