From d907c1fc00b233075e2751256296b004ef79e5a9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 30 Dec 2010 09:42:05 +1100 Subject: Avoid redraws when setting an indicator over positions where it is already set. From Tino Weinkauf. --- src/RunStyles.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index ae32c7380..460d5d244 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -147,8 +147,10 @@ bool RunStyles::FillRange(int &position, int value, int &fillLength) { runEnd = RunFromPosition(end); RemoveRunIfSameAsPrevious(runEnd); RemoveRunIfSameAsPrevious(runStart); + return true; + } else { + return false; } - return true; } void RunStyles::SetValueAt(int position, int value) { -- cgit v1.2.3