+ fix some warnings
This commit is contained in:
parent
351e7aae6f
commit
a12f700aa2
|
@ -131,19 +131,20 @@ void Constraint::Restore(XMLReader &reader)
|
|||
AlignmentType = (InternalAlignmentType) reader.getAttributeAsInteger("InternalAlignmentType");
|
||||
else
|
||||
AlignmentType = Undef;
|
||||
|
||||
|
||||
// read the third geo group if present
|
||||
if (reader.hasAttribute("Third")) {
|
||||
Third = reader.getAttributeAsInteger("Third");
|
||||
ThirdPos = (PointPos) reader.getAttributeAsInteger("ThirdPos");
|
||||
}
|
||||
|
||||
// Read the distance a constraint label has been moved
|
||||
if (reader.hasAttribute("LabelDistance"))
|
||||
LabelDistance = (float)reader.getAttributeAsFloat("LabelDistance");
|
||||
|
||||
if (reader.hasAttribute("LabelPosition"))
|
||||
LabelPosition = (float)reader.getAttributeAsFloat("LabelPosition");
|
||||
|
||||
|
||||
if (reader.hasAttribute("IsDriving"))
|
||||
isDriving = (bool)reader.getAttributeAsInteger("IsDriving");
|
||||
isDriving = reader.getAttributeAsInteger("IsDriving") ? true : false;
|
||||
}
|
||||
|
|
|
@ -3476,7 +3476,7 @@ void CmdSketcherToggleDrivingConstraint::activated(int iMsg)
|
|||
// issue the actual commands to toggle
|
||||
doCommand(Doc,"App.ActiveDocument.%s.toggleDriving(%d) ",selection[0].getFeatName(),ConstrId);
|
||||
}
|
||||
catch(const Base::Exception& e) {
|
||||
catch(const Base::Exception&) {
|
||||
succesful--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user