From: Michael Schmitt Date: Mon, 23 Oct 2006 16:04:51 +0000 (+0000) Subject: change tracking: X-Git-Tag: 1.6.10~12219 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b08f0d1f39946759d9c4a498da6c66dcd57ee6f5;p=features.git change tracking: * paragraph.h: add method isUnchanged(..) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15511 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/paragraph.h b/src/paragraph.h index fedd97c3c3..be0d0b1ef7 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -198,6 +198,10 @@ public: /// is there a change within the given range ? bool isChanged(pos_type start, pos_type end) const; + /// is there an unchanged char at the given pos ? + bool isUnchanged(pos_type pos) const { + return lookupChange(pos).type == Change::UNCHANGED; + } /// is there an insertion at the given pos ? bool isInserted(pos_type pos) const { return lookupChange(pos).type == Change::INSERTED;