mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2025-12-06 06:52:01 +01:00
Fixed color selection on the right side of the color grid
This commit is contained in:
parent
a2911345c5
commit
f53c75cf26
|
|
@ -162,7 +162,7 @@ class GridColorPalette implements IColorPalette {
|
||||||
|
|
||||||
int column = (int) (x / (mBoxSize + mSpace));
|
int column = (int) (x / (mBoxSize + mSpace));
|
||||||
int row = (int) (y / (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;
|
return false;
|
||||||
|
|
||||||
int i = row * mColumns + column;
|
int i = row * mColumns + column;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue