git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1584 8e941d3f-bd1b-0410-a28a-d453659cc2b4

This commit is contained in:
yangjixian
2011-04-19 13:57:38 +00:00
parent 6b59df8592
commit 14c9b6cdd6

View File

@ -187,13 +187,12 @@ begin
X := X div FButtonWidth;
Y := Y div FButtonHeight;
// if X + Y * FCols < 0 then
// Exit;
if X + Y * FCols < 0 then
Exit;
if X + Y * FCols < FColors.Count then
begin
PickedColor := TColor(FColors.Items[X + Y * FCols]);
//if PickedColor <> clNone then ColorPick(PickedColor, Shift);
PickShift := Shift;
end;
end;