mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-01 04:10:34 +05:00
IPAL19241 REGR: Incorrect message on Explode if Point is selected as Main Object.
This commit is contained in:
parent
17fb3c8639
commit
cd6d281a95
@ -215,6 +215,7 @@ void EntityGUI_SubShapeDlg::SelectionIntoArgument()
|
||||
S.IsNull() ||
|
||||
S.ShapeType() == TopAbs_VERTEX )
|
||||
{
|
||||
myObject = GEOM::GEOM_Object::_nil();
|
||||
updateButtonState();
|
||||
return;
|
||||
}
|
||||
@ -524,9 +525,8 @@ GEOM::GEOM_IOperations_ptr EntityGUI_SubShapeDlg::createOperation()
|
||||
bool EntityGUI_SubShapeDlg::isValid( QString& msg )
|
||||
{
|
||||
bool isOk = false;
|
||||
Handle(SALOME_InteractiveObject) IO = firstIObject();
|
||||
Standard_Boolean testResult;
|
||||
myObject = GEOMBase::ConvertIOinGEOMObject( IO, testResult );
|
||||
Standard_Boolean testResult;
|
||||
GEOM::GEOM_Object_var anObj = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
|
||||
if ( !testResult || myObject->_is_nil() ) {
|
||||
updateButtonState();
|
||||
return isOk;
|
||||
@ -535,11 +535,7 @@ bool EntityGUI_SubShapeDlg::isValid( QString& msg )
|
||||
if ( isAllSubShapes() )
|
||||
isOk = true;
|
||||
else if ( IObjectCount() == 1 ) {
|
||||
Standard_Boolean aResult = Standard_False;
|
||||
GEOM::GEOM_Object_var anObj =
|
||||
GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
|
||||
|
||||
if ( aResult && !anObj->_is_nil() ) {
|
||||
if ( testResult && !anObj->_is_nil() ) {
|
||||
TColStd_IndexedMapOfInteger aMapIndex;
|
||||
myGeomGUI->getApp()->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
|
||||
isOk = aMapIndex.Extent() > 0;
|
||||
|
Loading…
Reference in New Issue
Block a user