UPD: Remove unnecessary checks on ToolBar1.Visible; checks on btnHightlight.Down are sufficient (especially since ToolBar1 is always hidden on macOS)

This commit is contained in:
rich2014 2026-05-19 11:32:05 +08:00
commit f695bd75ae

View file

@ -1429,9 +1429,7 @@ begin
X:=round(X*Image.Picture.Width/Image.Width); // for correct paint after zoom
Y:=round(Y*Image.Picture.Height/Image.Height);
MDFlag:=false;
if ToolBar1.Visible then
begin
if (button = mbLeft) and btnHightlight.Down then
if (button = mbLeft) and btnHightlight.Down then
begin
UndoTmp;
CheckXY;
@ -1445,7 +1443,6 @@ begin
Status.Panels[sbpImageSelection].Text := IntToStr(EndX-StartX)+'x'+IntToStr(EndY-StartY);
end;
end;
end;
Image.Cursor:=crDefault;
end;