From 127e529a6b9eda9244a87d901ff140b179717bd0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 17 Feb 2005 12:39:24 +0000 Subject: Fix for bug 1110111 by moving end of styling to first argument if it is currently after the argument. --- src/Document.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index ce27ffc47..f2fcc7c69 100644 --- a/src/Document.h +++ b/src/Document.h @@ -134,6 +134,7 @@ public: int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); // Gateways to modifying document + void ModifiedAt(int pos); bool DeleteChars(int pos, int len); bool InsertStyledString(int position, char *s, int insertLength); int Undo(); @@ -237,7 +238,6 @@ private: bool IsWordStartAt(int pos); bool IsWordEndAt(int pos); bool IsWordAt(int start, int end); - void ModifiedAt(int pos); void NotifyModifyAttempt(); void NotifySavePoint(bool atSavePoint); @@ -271,7 +271,7 @@ public: foldLevelNow(0), foldLevelPrev(0) {} - DocModification(int modificationType_, const Action &act, int linesAdded_=0) : + DocModification(int modificationType_, const Action &act, int linesAdded_=0) : modificationType(modificationType_), position(act.position / 2), length(act.lenData), -- cgit v1.2.3