Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b522cce
)
#1404 Random crash with Shaper: AIS presentations: correction for coincidence present...
author
nds
<nds@opencascade.com>
Thu, 21 Apr 2016 12:54:08 +0000
(15:54 +0300)
committer
nds
<nds@opencascade.com>
Thu, 21 Apr 2016 12:54:37 +0000
(15:54 +0300)
src/SketcherPrs/SketcherPrs_Coincident.cpp
patch
|
blob
|
history
diff --git
a/src/SketcherPrs/SketcherPrs_Coincident.cpp
b/src/SketcherPrs/SketcherPrs_Coincident.cpp
index d8cb88cb21b3d905873a5a68d87a12172459faf8..a2931fa51f26ffe664103ac88be206294f3ea7e7 100644
(file)
--- a/
src/SketcherPrs/SketcherPrs_Coincident.cpp
+++ b/
src/SketcherPrs/SketcherPrs_Coincident.cpp
@@
-56,7
+56,7
@@
bool SketcherPrs_Coincident::readyToDisplay(ModelAPI_Feature* theConstraint,
// Get point of the presentation
std::shared_ptr<GeomAPI_Pnt2d> aPnt = SketcherPrs_Tools::getPoint(theConstraint,
SketchPlugin_Constraint::ENTITY_A());
- if (aPnt.get()
== NULL
) {
+ if (aPnt.get()) {
aPnt = SketcherPrs_Tools::getPoint(theConstraint, SketchPlugin_Constraint::ENTITY_B());
aReadyToDisplay = aPnt.get() != NULL;
if (aReadyToDisplay)