Skip to content

Commit

Permalink
Mantis 5846: Hottrack should not work when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
obones committed Jun 12, 2012
1 parent d44ccd8 commit 3130b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jvcl/run/JvImage.pas
Expand Up @@ -213,7 +213,7 @@ procedure TJvImage.MouseEnter(Control: TControl);
Exit;
if not MouseOver then
begin
if UsesPictures then
if UsesPictures and Enabled then
State := stEntered;
inherited MouseEnter(Control);
end;
Expand All @@ -223,7 +223,7 @@ procedure TJvImage.MouseLeave(Control: TControl);
begin
if MouseOver then
begin
if UsesPictures then
if UsesPictures and Enabled then
ApplyClick;
inherited MouseLeave(Control);
end;
Expand Down

0 comments on commit 3130b13

Please sign in to comment.