Fix #12195: Reset cursor when no Object is selected (#12207)

This commit is contained in:
Loïc Guilloux 2024-03-02 13:02:56 +01:00 committed by GitHub
parent b53d79b1d2
commit 253ba0d354
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -441,6 +441,8 @@ public:
if (_selected_object_index != -1) {
SetObjectToPlaceWnd(SPR_CURSOR_TRANSMITTER, PAL_NONE, HT_RECT | HT_DIAGONAL, this);
} else {
ResetObjectToPlace();
}
this->UpdateButtons(_selected_object_class, _selected_object_index, _selected_object_view);