PartDesign/CommandBody: a minor fix in MoveTip command

This commit is contained in:
Alexander Golubev 2015-09-08 10:47:58 +03:00 committed by Stefan Tröger
parent 26fb01b429
commit 04f3ae0605

View File

@ -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;