]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for crash on Debian Squeeze. It is quite tricky and crash is avoided if change...
authormpv <mikhail.ponikarov@opencascade.com>
Thu, 13 Nov 2014 10:47:01 +0000 (13:47 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Thu, 13 Nov 2014 10:47:01 +0000 (13:47 +0300)
src/Model/CMakeLists.txt
src/Model/Model_Session.cpp
src/SketchPlugin/Test/TestConstraintConcidence.py

index 753fd7817bd14c5ae8a34540513e7a195f95a24a..3d7716827fd526888c7f9a57d31c866e9b176e7c 100644 (file)
@@ -67,7 +67,7 @@ SET(PROJECT_LIBRARIES
 
 
 ADD_DEFINITIONS(-DMODEL_EXPORTS ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS})
-ADD_LIBRARY(Model SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
+ADD_LIBRARY(Model MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS})
 TARGET_LINK_LIBRARIES(Model ${PROJECT_LIBRARIES})
 
 INCLUDE_DIRECTORIES(
index 2c9a5abad0de823444d7842d3701867fa3e319dd..2c624b8aabadf5fb7da45380d381b79283ba325a 100644 (file)
@@ -101,6 +101,9 @@ FeaturePtr Model_Session::createFeature(string theFeatureID)
   if (this != myImpl)
     return myImpl->createFeature(theFeatureID);
 
+  // load all information about plugins, features and attributes
+  LoadPluginsInfo();
+
   if (myPlugins.find(theFeatureID) != myPlugins.end()) {
     std::pair<std::string, std::string>& aPlugin = myPlugins[theFeatureID]; // plugin and doc kind
     if (!aPlugin.second.empty() && aPlugin.second != activeDocument()->kind()) {
@@ -217,9 +220,6 @@ Model_Session::Model_Session()
   aLoop->registerListener(this, Events_Loop::eventByName(EVENT_OBJECT_UPDATED), 0, true);
   aLoop->registerListener(this, Events_Loop::eventByName(EVENT_OBJECT_DELETED), 0, true);
   aLoop->registerListener(this, Events_Loop::eventByName(EVENT_VALIDATOR_LOADED));
-  
-  // load all information about plugins, features and attributes
-  LoadPluginsInfo();
 }
 
 void Model_Session::processEvent(const boost::shared_ptr<Events_Message>& theMessage)
index dedb420a5d7d41bc0b34474d21a33d4e16c1381f..35e9ac0c8e95da10d1a7776e6d02a34aa52b869c 100644 (file)
@@ -84,9 +84,9 @@ assert (aLineStartPoint.y() == 0)
 deltaX = deltaY = 40.
 #  move line
 aSession.startOperation()
-aLineStartPoint.setValue(aLineStartPoint.x() + deltaX,
+anArcStartPoint.setValue(aLineStartPoint.x() + deltaX,
                          aLineStartPoint.y() + deltaY)
-aLineEndPoint.setValue(aLineEndPoint.x() + deltaX,
+anArcEndPoint.setValue(aLineEndPoint.x() + deltaX,
                        aLineEndPoint.y() + deltaY)
 aSession.finishOperation()
 # check that arc's points are moved also