From d220ba3aa321d58d1ab1bb7b07305c825ba53e16 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 7 Jun 2011 11:45:17 +1000 Subject: Fix bug with extra partition created when range filled. --- src/RunStyles.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index c3414b4e8..93688b3f9 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -147,6 +147,8 @@ bool RunStyles::FillRange(int &position, int value, int &fillLength) { runEnd = RunFromPosition(end); RemoveRunIfSameAsPrevious(runEnd); RemoveRunIfSameAsPrevious(runStart); + runEnd = RunFromPosition(end); + RemoveRunIfEmpty(runEnd); return true; } else { return false; -- cgit v1.2.3