X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraph.h;h=c4d3f9768189992743aa6404885b11547a70bacf;hb=7032b0374801d7e2621c221ce43f409855a901d6;hp=77f1260fed8e3b3076903ec8cbb3e36dea1479ef;hpb=c668ebf61151e1cdf6b583dc5ecdc8f8a0cfc678;p=lyx.git diff --git a/src/Paragraph.h b/src/Paragraph.h index 77f1260fed..c4d3f97681 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -76,7 +76,7 @@ public: return first == s.first && last == s.last; } - inline bool inside(pos_type p) const + inline bool contains(pos_type p) const { return first <= p && p <= last; } @@ -90,15 +90,15 @@ public: inline FontSpan intersect(FontSpan const & f) const { FontSpan result = FontSpan(); - if (inside(f.first)) + if (contains(f.first)) result.first = f.first; - else if (f.inside(first)) + else if (f.contains(first)) result.first = first; else return result; - if (inside(f.last)) + if (contains(f.last)) result.last = f.last; - else if (f.inside(last)) + else if (f.contains(last)) result.last = last; return result; } @@ -431,8 +431,6 @@ public: /// return true if we allow this par to stay empty bool allowEmpty() const; /// - char_type transformChar(char_type c, pos_type pos) const; - /// ParagraphParameters & params(); /// ParagraphParameters const & params() const;