🚨 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:
2026-11-15 22:08:32 +01:00
parent b47292a4bc
commit 0092f6893e
+1
View File
@@ -3626,6 +3626,7 @@ end;
function TfrmMain.GetSelectedRect: TRect; function TfrmMain.GetSelectedRect: TRect;
begin begin
Result := Rect(-1, -1, -1, -1);
if CurrentTile <> nil then if CurrentTile <> nil then
begin begin
if SelectedTile <> nil then if SelectedTile <> nil then