LCL, grids, only call cellclick on cells which completes the mousedown-mouseup cycle, fixes problem where grid receives mouseup on doubleclicking opendialog

git-svn-id: trunk@29917 -
This commit is contained in:
jesus 2011-03-19 19:31:20 +00:00
parent df3550bba9
commit f1dbbf861a

View File

@ -5781,7 +5781,7 @@ begin
end;
gsNormal:
if not FixedGrid then
if not FixedGrid and (Cur.X=FGCache.ClickCell.X) and (Cur.Y=FGCache.ClickCell.Y) then
CellClick(cur.x, cur.y, Button);
gsSelecting:
@ -5856,6 +5856,7 @@ begin
if IsPushCellActive() then begin
ResetPushedCell;
end;
FGCache.ClickCell := point(-1, -1);
{$IfDef dbgGrid}DebugLn('MouseUP END RND=', FloatToStr(Random));{$Endif}
end;
@ -8022,6 +8023,7 @@ begin
FRows:=TList.Create;
FGCache.AccumWidth:=TList.Create;
FGCache.AccumHeight:=TList.Create;
FGCache.ClickCell := point(-1, -1);
inherited Create(AOwner);
FColumns := CreateColumns;