diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/RunStyles.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index b74053e75..82d924a23 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -116,11 +116,11 @@ int RunStyles::EndRun(int position) {  bool RunStyles::FillRange(int &position, int value, int &fillLength) {  	if (fillLength <= 0) { -		throw std::invalid_argument("RunStyles::FillRange <= 0 length."); +		return false;  	}  	int end = position + fillLength;  	if (end > Length()) { -		throw std::invalid_argument("RunStyles::FillRange length goes past end."); +		return false;  	}  	int runEnd = RunFromPosition(end);  	if (styles->ValueAt(runEnd) == value) { | 
