From 75bed4f0a73a0ef3a0d69026f21bc280b2232513 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 12 Sep 2012 13:44:09 +1000 Subject: Fix bug where removing all characters from indicator at end of document did not remove that run causing iteration over the indicator to hang. --- src/RunStyles.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index 643d2fb2d..9c4e90a66 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -205,6 +205,7 @@ void RunStyles::DeleteRange(int position, int deleteLength) { if (runStart == runEnd) { // Deleting from inside one run starts->InsertText(runStart, -deleteLength); + RemoveRunIfEmpty(runStart); } else { runStart = SplitRun(position); runEnd = SplitRun(end); -- cgit v1.2.3