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
Meet the coding style (line length <= 100)
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_ConstraintHorizontal.cpp
diff --git
a/src/SketchPlugin/SketchPlugin_ConstraintHorizontal.cpp
b/src/SketchPlugin/SketchPlugin_ConstraintHorizontal.cpp
index 175715d28afd30f5f4a3694d6aa942753a81895c..558b44a3ddaa4aa6eea1af177f350db1f23579c2 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_ConstraintHorizontal.cpp
+++ b/
src/SketchPlugin/SketchPlugin_ConstraintHorizontal.cpp
@@
-14,6
+14,7
@@
#include <SketchPlugin_Sketch.h>
#include <SketcherPrs_Factory.h>
#include <SketchPlugin_Sketch.h>
#include <SketcherPrs_Factory.h>
+//#include <SketcherPrs_Tools.h>
#include <Config_PropManager.h>
#include <Config_PropManager.h>
@@
-23,7
+24,7
@@
SketchPlugin_ConstraintHorizontal::SketchPlugin_ConstraintHorizontal()
void SketchPlugin_ConstraintHorizontal::initAttributes()
{
void SketchPlugin_ConstraintHorizontal::initAttributes()
{
- data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::type());
+ data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::type
Id
());
}
void SketchPlugin_ConstraintHorizontal::execute()
}
void SketchPlugin_ConstraintHorizontal::execute()
@@
-35,11
+36,8
@@
AISObjectPtr SketchPlugin_ConstraintHorizontal::getAISObject(AISObjectPtr thePre
if (!sketch())
return thePrevious;
if (!sketch())
return thePrevious;
- AISObjectPtr anAIS = thePrevious;
- if (!anAIS) {
- anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane());
- }
+ AISObjectPtr anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane(),
+ thePrevious);
return anAIS;
}
return anAIS;
}
-