From 78882bc8cfbd8e006667240dc0c01fecbc7c5777 Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 17 Feb 2010 09:42:24 +0000 Subject: [PATCH] corrections for 0020669 --- src/BasicGUI/BasicGUI_PointDlg.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/BasicGUI/BasicGUI_PointDlg.cxx b/src/BasicGUI/BasicGUI_PointDlg.cxx index 2eebfdca6..6dbd90b26 100644 --- a/src/BasicGUI/BasicGUI_PointDlg.cxx +++ b/src/BasicGUI/BasicGUI_PointDlg.cxx @@ -460,6 +460,7 @@ bool BasicGUI_PointDlg::ClickOnApply() //================================================================================= void BasicGUI_PointDlg::SelectionIntoArgument() { + erasePreview(); const int id = getConstructorId(); if ( ( id == GEOM_POINT_REF || id == GEOM_POINT_EDGE || id == GEOM_POINT_SURF ) && myEditCurrentArgument != 0 ) @@ -469,6 +470,12 @@ void BasicGUI_PointDlg::SelectionIntoArgument() myY->setText( "" ); myZ->setText( "" ); myRefPoint = myEdge = myFace = GEOM::GEOM_Object::_nil(); + } else if ( id == GEOM_POINT_INTINT ) { + myEditCurrentArgument->setText( "" ); + if ( myEditCurrentArgument == GroupLineIntersection->LineEdit1 ) + myLine1 = GEOM::GEOM_Object::_nil(); + else if ( myEditCurrentArgument == GroupLineIntersection->LineEdit2 ) + myLine2 = GEOM::GEOM_Object::_nil(); } LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr(); @@ -851,6 +858,13 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects ) } case GEOM_POINT_INTINT : anObj = anOper->MakePointOnLinesIntersection( myLine1, myLine2 ); + if ( !anObj->_is_nil() ) { + QString aName = getNewObjectName(); + if ( anObj->GetShapeType() == GEOM::COMPOUND && aName.startsWith("Vertex") ) + initName( tr( "GEOM_COMPOUND" ) ); + else if ( anObj->GetShapeType() == GEOM::VERTEX && aName.startsWith("Compound")) + initName( tr( "GEOM_VERTEX" ) ); + } res = true; break; case GEOM_POINT_SURF : -- 2.39.2