From 0092f6893e945ccec3fd89e2a5c54e70b4233c44 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 14:26:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Return=20an=20empty=20rectangle?= =?UTF-8?q?=20when=20no=20tile=20is=20selected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GetSelectedRect left its result undefined when called without a current tile. --- Client/UfrmMain.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/Client/UfrmMain.pas b/Client/UfrmMain.pas index a66024f..c2e8565 100644 --- a/Client/UfrmMain.pas +++ b/Client/UfrmMain.pas @@ -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