Salome HOME
Minor corrections
authormpv <mpv@opencascade.com>
Thu, 19 Mar 2015 13:57:15 +0000 (16:57 +0300)
committermpv <mpv@opencascade.com>
Thu, 19 Mar 2015 13:57:15 +0000 (16:57 +0300)
CMakeLists.txt
src/ConstructionPlugin/ConstructionPlugin_Plane.cpp
src/GeomAPI/GeomAPI_Shape.cpp
src/ModuleBase/ModuleBase_PagedContainer.cpp
src/SketchSolver/SketchSolver_ConstraintManager.cpp

index 8406c7645f9741309ac3644da6618d2156c0fdc4..789636f2afb261daeeb20d5ab08302d473979efc 100644 (file)
@@ -1,7 +1,7 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
 
 PROJECT (NewGEOM)
-SET (NewGeom_Version 1.0.0)
+SET (NewGeom_Version 1.1.0)
 
 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeCommon" ${CMAKE_MODULE_PATH})
 
index 5fecd65240f47ab593168de9c74efb98a8eabe95..7448f5a7e5aa62f5d8bc70b9b403f8593c0fcbdc 100644 (file)
@@ -137,7 +137,8 @@ std::shared_ptr<GeomAPI_Shape> ConstructionPlugin_Plane::createPlaneByGeneralEqu
       anAttrC->isInitialized() && anAttrD->isInitialized() ) {
     double aA = anAttrA->value(), aB = anAttrB->value(),
            aC = anAttrC->value(), aD = anAttrD->value();
-    std::shared_ptr<GeomAPI_Pln> aPlane = std::shared_ptr<GeomAPI_Pln>(new GeomAPI_Pln(aA, aB, aC, aD));
+    std::shared_ptr<GeomAPI_Pln> aPlane = 
+      std::shared_ptr<GeomAPI_Pln>(new GeomAPI_Pln(aA, aB, aC, aD));
     std::string kDefaultPlaneSize = "200";
     double aSize = Config_PropManager::integer("Sketch planes", "planes_size", kDefaultPlaneSize);
     aSize *= 4.;
index 5a84a3d98680abc7ba2753556332fe53b31bffb1..78d5105ee98e9e55bd110eba04b3445c85033c0c 100644 (file)
@@ -27,6 +27,8 @@ bool GeomAPI_Shape::isNull() const
 
 bool GeomAPI_Shape::isEqual(const std::shared_ptr<GeomAPI_Shape> theShape) const
 {
+  if (!theShape.get())
+    return false;
   if (isNull())
     return theShape->isNull();
   if (theShape->isNull())
index d067e100c6132365785787373c2bdb665079a8c7..29cdd56eaa51dad616f853ad54df83d0c82f5386 100644 (file)
@@ -33,6 +33,7 @@ int ModuleBase_PagedContainer::addPage(ModuleBase_PageBase* thePage,
 {
   myCaseIds << theCaseId;
   myPages << thePage;
+  storeValueCustom(); // to store the initial state
   return myPages.count();
 }
 
@@ -95,6 +96,7 @@ bool ModuleBase_PagedContainer::storeValueCustom() const
   AttributeStringPtr aStringAttr = aData->string(attributeID());
   QString aWidgetValue = myCaseIds.at(currentPageIndex());
   aStringAttr->setValue(aWidgetValue.toStdString());
+  updateObject(myFeature); // for preview
   return true;
 }
 
index 71f062c392a6a3de9537a2c31ed20066c6a36929..aeaad1aed342010b0dd5461c5243906111081a0c 100644 (file)
@@ -399,4 +399,3 @@ void SketchSolver_ConstraintManager::resolveConstraints(const bool theForceUpdat
   if (needToUpdate || theForceUpdate)
     Events_Loop::loop()->flush(anUpdateEvent);
 }
-