🚨 Return an empty rectangle when no tile is selected
GetSelectedRect left its result undefined when called without a current tile.
This commit is contained in:
@@ -3626,6 +3626,7 @@ end;
|
||||
|
||||
function TfrmMain.GetSelectedRect: TRect;
|
||||
begin
|
||||
Result := Rect(-1, -1, -1, -1);
|
||||
if CurrentTile <> nil then
|
||||
begin
|
||||
if SelectedTile <> nil then
|
||||
|
||||
Reference in New Issue
Block a user