From 04f3ae06052819ef52b16a3de43933199750fcc3 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Tue, 8 Sep 2015 10:47:58 +0300 Subject: [PATCH] PartDesign/CommandBody: a minor fix in MoveTip command --- src/Mod/PartDesign/Gui/CommandBody.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/Gui/CommandBody.cpp b/src/Mod/PartDesign/Gui/CommandBody.cpp index aca4c7bca..b7d7a0288 100644 --- a/src/Mod/PartDesign/Gui/CommandBody.cpp +++ b/src/Mod/PartDesign/Gui/CommandBody.cpp @@ -448,8 +448,7 @@ void CmdPartDesignMoveTip::activated(int iMsg) QObject::tr( "Couldn't determin a body for the selected feature '%s'.", selFeature->Label.getValue() ) ); return; } else if ( !selFeature->isDerivedFrom(PartDesign::Feature::getClassTypeId () ) && - !selFeature->getTypeId().isDerivedFrom ( PartDesign::Body::getClassTypeId() ) && - body->BaseFeature.getValue() != selFeature ) { + selFeature != body && body->BaseFeature.getValue() != selFeature ) { QMessageBox::warning (0, QObject::tr( "Selection error" ), QObject::tr( "Only a solid feature can be the tip of a body." ) ); return;