diff --git a/src/Mod/Fem/Gui/Command.cpp b/src/Mod/Fem/Gui/Command.cpp index 0353cabede..5c6f03a4c7 100644 --- a/src/Mod/Fem/Gui/Command.cpp +++ b/src/Mod/Fem/Gui/Command.cpp @@ -240,7 +240,7 @@ void CmdFemConstraintBearing::activated(int iMsg) bool CmdFemConstraintBearing::isActive(void) { - return hasActiveDocument(); + return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject(); } //===================================================================================== @@ -278,7 +278,7 @@ void CmdFemConstraintFixed::activated(int iMsg) bool CmdFemConstraintFixed::isActive(void) { - return hasActiveDocument(); + return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject(); } //===================================================================================== @@ -317,7 +317,7 @@ void CmdFemConstraintForce::activated(int iMsg) bool CmdFemConstraintForce::isActive(void) { - return hasActiveDocument(); + return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject(); } //===================================================================================== @@ -357,7 +357,7 @@ void CmdFemConstraintPressure::activated(int iMsg) bool CmdFemConstraintPressure::isActive(void) { - return hasActiveDocument(); + return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject(); } //===================================================================================== @@ -395,7 +395,7 @@ void CmdFemConstraintGear::activated(int iMsg) bool CmdFemConstraintGear::isActive(void) { - return hasActiveDocument(); + return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject(); } //===================================================================================== @@ -438,7 +438,7 @@ void CmdFemConstraintPulley::activated(int iMsg) bool CmdFemConstraintPulley::isActive(void) { - return hasActiveDocument(); + return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject(); } // #####################################################################################################