Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git]
/
src
/
PartSet
/
PartSet_OperationEditLine.cpp
diff --git
a/src/PartSet/PartSet_OperationEditLine.cpp
b/src/PartSet/PartSet_OperationEditLine.cpp
index 5486ffff028ff7ddc4aa93668172e25c2163746d..c9fbbfd8692b7f271fcf8ee81bfcf29301b66e29 100644
(file)
--- a/
src/PartSet/PartSet_OperationEditLine.cpp
+++ b/
src/PartSet/PartSet_OperationEditLine.cpp
@@
-145,7
+145,7
@@
void PartSet_OperationEditLine::moveLinePoint(boost::shared_ptr<ModelAPI_Featur
double theDeltaX, double theDeltaY,
const std::string& theAttribute)
{
double theDeltaX, double theDeltaY,
const std::string& theAttribute)
{
- if (!theFeature)
+ if (!theFeature
|| theFeature->getKind() != "SketchLine"
)
return;
boost::shared_ptr<ModelAPI_Data> aData = theFeature->data();
return;
boost::shared_ptr<ModelAPI_Data> aData = theFeature->data();