Fixed color selection on the right side of the color grid

pull/3/head
Olga Miller 2017-03-09 19:15:00 +01:00
rodzic a2911345c5
commit f53c75cf26
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;