mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
change tracking:
* src/paragraph.h: add method isInserted(...) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d56de86b6a
commit
34bca87dd8
@ -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 insertion at the given pos ?
|
||||
bool isInserted(pos_type pos) const {
|
||||
return lookupChange(pos).type == Change::INSERTED;
|
||||
}
|
||||
/// is there a deletion at the given pos ?
|
||||
bool isDeleted(pos_type pos) const {
|
||||
return lookupChange(pos).type == Change::DELETED;
|
||||
|
Loading…
Reference in New Issue
Block a user