From: Jérôme Date: Thu, 17 Dec 2020 14:32:02 +0000 (+0100) Subject: #20529 : Add GeomValidators_ConstructionComposite in xml X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=27736eaeef37d48b5d0094e77b1abdcedb400dd4;p=modules%2Fshaper.git #20529 : Add GeomValidators_ConstructionComposite in xml --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_PointCoordinates.cpp b/src/FeaturesPlugin/FeaturesPlugin_PointCoordinates.cpp index 01b8199a0..6a6daa9c5 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_PointCoordinates.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_PointCoordinates.cpp @@ -79,16 +79,12 @@ void FeaturesPlugin_PointCoordinates::attributeChanged(const std::string& theID) } if (aShape) { aPoint = GeomAlgoAPI_PointBuilder::point(aShape); - if (aPoint.get()) { - streamx << std::setprecision(14) << aPoint->x(); - aValues->setValue(0, aPoint->x()); - streamy << std::setprecision(14) << aPoint->y(); - aValues->setValue(1, aPoint->y()); - streamz << std::setprecision(14) << aPoint->z(); - aValues->setValue(2, aPoint->z()); - } else { - aSelection->setValue( aSelection->context(),GeomShapePtr()); - } + streamx << std::setprecision(14) << aPoint->x(); + aValues->setValue(0, aPoint->x()); + streamy << std::setprecision(14) << aPoint->y(); + aValues->setValue(1, aPoint->y()); + streamz << std::setprecision(14) << aPoint->z(); + aValues->setValue(2, aPoint->z()); } string(X_COORD_ID() )->setValue( "X = " + streamx.str() ); diff --git a/src/FeaturesPlugin/point_coordinates_widget.xml b/src/FeaturesPlugin/point_coordinates_widget.xml index 7e5aa1151..29c744cc9 100644 --- a/src/FeaturesPlugin/point_coordinates_widget.xml +++ b/src/FeaturesPlugin/point_coordinates_widget.xml @@ -5,6 +5,7 @@ tooltip="Select a point" shape_types="vertex" default=""> +