+ fix minor bug when adding coincidence constraint
This commit is contained in:
parent
463b5d4a7e
commit
ac010de9c9
|
@ -561,11 +561,11 @@ void CmdSketcherConstrainCoincident::activated(int iMsg)
|
|||
bool constraintExists=false;
|
||||
|
||||
for (std::vector< Sketcher::Constraint * >::const_iterator it= vals.begin(); it != vals.end(); ++it) {
|
||||
if ((*it)->Type == Sketcher::Coincident &&
|
||||
( (*it)->First == GeoId1 && (*it)->FirstPos == PosId1 &&
|
||||
if ((*it)->Type == Sketcher::Coincident && (
|
||||
((*it)->First == GeoId1 && (*it)->FirstPos == PosId1 &&
|
||||
(*it)->Second == GeoId2 && (*it)->SecondPos == PosId2 ) ||
|
||||
( (*it)->First == GeoId2 && (*it)->FirstPos == PosId2 &&
|
||||
(*it)->Second == GeoId1 && (*it)->SecondPos == PosId1 ) ) {
|
||||
((*it)->First == GeoId2 && (*it)->FirstPos == PosId2 &&
|
||||
(*it)->Second == GeoId1 && (*it)->SecondPos == PosId1 ) ) ) {
|
||||
constraintExists=true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user