+ fix some warnings
This commit is contained in:
parent
351e7aae6f
commit
a12f700aa2
|
@ -137,6 +137,7 @@ void Constraint::Restore(XMLReader &reader)
|
|||
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");
|
||||
|
@ -145,5 +146,5 @@ void Constraint::Restore(XMLReader &reader)
|
|||
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