ClearTo with first and last index doesn't handle a single pixel

The argument valid test needed to support that first and last could be
the same
This commit is contained in:
Michael Miller
2016-09-25 12:55:49 -07:00
parent b2a9dadfd2
commit ccb0239558
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ public:
{
if (first < _countPixels &&
last < _countPixels &&
first < last)
first <= last)
{
uint8_t temp[T_COLOR_FEATURE::PixelSize];
uint8_t* pixels = _method.getPixels();