]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#20529 : fix issue
authorJérôme <jerome.lucas@cesgenslab.fr>
Thu, 17 Dec 2020 13:06:34 +0000 (14:06 +0100)
committerJérôme <jerome.lucas@cesgenslab.fr>
Thu, 17 Dec 2020 13:06:34 +0000 (14:06 +0100)
.vscode/settings.json [deleted file]
src/FeaturesPlugin/FeaturesPlugin_PointCoordinates.cpp

diff --git a/.vscode/settings.json b/.vscode/settings.json
deleted file mode 100644 (file)
index f5d069e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-{
-    "restructuredtext.confPath": "",
-    "files.associations": {
-        "array": "cpp",
-        "atomic": "cpp",
-        "*.tcc": "cpp",
-        "bitset": "cpp",
-        "cctype": "cpp",
-        "chrono": "cpp",
-        "clocale": "cpp",
-        "cmath": "cpp",
-        "cstdarg": "cpp",
-        "cstddef": "cpp",
-        "cstdint": "cpp",
-        "cstdio": "cpp",
-        "cstdlib": "cpp",
-        "cstring": "cpp",
-        "ctime": "cpp",
-        "cwchar": "cpp",
-        "cwctype": "cpp",
-        "deque": "cpp",
-        "list": "cpp",
-        "unordered_map": "cpp",
-        "vector": "cpp",
-        "exception": "cpp",
-        "algorithm": "cpp",
-        "functional": "cpp",
-        "iterator": "cpp",
-        "map": "cpp",
-        "memory": "cpp",
-        "memory_resource": "cpp",
-        "numeric": "cpp",
-        "optional": "cpp",
-        "ratio": "cpp",
-        "regex": "cpp",
-        "set": "cpp",
-        "string": "cpp",
-        "string_view": "cpp",
-        "system_error": "cpp",
-        "tuple": "cpp",
-        "type_traits": "cpp",
-        "utility": "cpp",
-        "fstream": "cpp",
-        "initializer_list": "cpp",
-        "iomanip": "cpp",
-        "iosfwd": "cpp",
-        "iostream": "cpp",
-        "istream": "cpp",
-        "limits": "cpp",
-        "new": "cpp",
-        "ostream": "cpp",
-        "sstream": "cpp",
-        "stdexcept": "cpp",
-        "streambuf": "cpp",
-        "cinttypes": "cpp",
-        "typeinfo": "cpp"
-    }
-}
\ No newline at end of file
index 6a6daa9c52ea2a905bca970d7ab95caf7e6fb5a5..01b8199a08328256d77c1cfcfc0e1b730d45b8a1 100644 (file)
@@ -79,12 +79,16 @@ void FeaturesPlugin_PointCoordinates::attributeChanged(const std::string& theID)
     }
     if (aShape) {
       aPoint = GeomAlgoAPI_PointBuilder::point(aShape);
-      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());
+      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());
+      }
     }
 
     string(X_COORD_ID() )->setValue( "X = " +  streamx.str() );