From 6795bf24288dd9b73dbf4b5da03a3bc549fecedf Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 18 Apr 2012 08:53:29 +0000 Subject: [PATCH] Bug IPAL22905: TC650: Projection on face dialog problems --- src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx | 2 +- .../TransformationGUI_ProjectionDlg.cxx | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx index f96171b1d..6c4718817 100644 --- a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx @@ -134,7 +134,7 @@ Standard_Integer GEOMImpl_ProjectionDriver::Execute(TFunction_Logbook& log) cons proj.Perform(aPnt); if (!proj.IsDone()) { Standard_ConstructionError::Raise - ("Projection aborted : GeomAPI_ProjectPointOnSurf failed"); + ("Projection aborted : the algorithm failed"); } int nbPoints = proj.NbPoints(); if (nbPoints < 1) { diff --git a/src/TransformationGUI/TransformationGUI_ProjectionDlg.cxx b/src/TransformationGUI/TransformationGUI_ProjectionDlg.cxx index 2bd662178..48edd3efa 100644 --- a/src/TransformationGUI/TransformationGUI_ProjectionDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_ProjectionDlg.cxx @@ -29,12 +29,15 @@ #include #include #include +#include #include #include #include #include +#include + //================================================================================= // class : TransformationGUI_ProjectionDlg() // purpose : Constructs a TransformationGUI_ProjectionDlg which is a child of 'parent', with the @@ -205,12 +208,20 @@ void TransformationGUI_ProjectionDlg::SetEditCurrentArgument() myGroup->PushButton2->setDown(false); myGroup->LineEdit2->setEnabled(false); + + TColStd_MapOfInteger aMap; + aMap.Add( GEOM_POINT ); + aMap.Add( GEOM_EDGE ); + aMap.Add( GEOM_WIRE ); + globalSelection( aMap ); } else if (send == myGroup->PushButton2) { myEditCurrentArgument = myGroup->LineEdit2; myGroup->PushButton1->setDown(false); myGroup->LineEdit1->setEnabled(false); + + globalSelection( GEOM_FACE ); } // enable line edit -- 2.39.2