mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
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:
parent
c6ff324ae8
commit
f695bd75ae
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue