Fixed color selection on the right side of the color grid

This commit is contained in:
Olga Miller 2017-03-09 19:15:00 +01:00
parent a2911345c5
commit f53c75cf26

View file

@ -162,7 +162,7 @@ class GridColorPalette implements IColorPalette {
int column = (int) (x / (mBoxSize + mSpace));
int row = (int) (y / (mBoxSize + mSpace));
if (0 > row || row >= mRows || 0 > column && column >= mColumns)
if (0 > row || row >= mRows || 0 > column || column >= mColumns)
return false;
int i = row * mColumns + column;