🚨 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;
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user