fix exception catching by reference

This commit is contained in:
Abdullah Tahiri
2018-11-17 15:55:04 +01:00
committed by wmayer
parent bf6f2b855d
commit 012e35253a
2 changed files with 11 additions and 11 deletions

View File

@@ -3729,7 +3729,7 @@ void GeomLineSegment::Restore (Base::XMLReader &reader)
try {
setPoints(start, end);
}
catch(Base::ValueError e) {
catch(Base::ValueError &e) {
// for a line segment construction, the only possibility of a value error is that
// the points are too close. The best try to restore is incrementing the distance.
// for other objects, the best effort may be just to leave default values.