From 3c825565ebddf646836822dc3f17b1370202e1c7 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 26 Oct 2021 21:55:15 +0200 Subject: [PATCH] Gui: [skip ci] fix regression not to allow to have selected several objects when opening the placement dialog --- src/Gui/CommandDoc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index 0f1a533b0e..b52f323731 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -1574,7 +1574,7 @@ void StdCmdPlacement::activated(int iMsg) bool StdCmdPlacement::isActive(void) { - return Gui::Selection().countObjectsOfType(App::GeoFeature::getClassTypeId()) == 1; + return Gui::Selection().countObjectsOfType(App::GeoFeature::getClassTypeId()) >= 1; } //===========================================================================