Fix load Dimension w/ broken ref

This commit is contained in:
WandererFan 2016-05-31 20:34:48 -04:00 committed by wmayer
parent 6133971747
commit f59173c728

View File

@ -149,7 +149,9 @@ void DrawViewDimension::onChanged(const App::Property* prop)
}
if (prop == &References3D) { //have to rebuild the Measurement object
clear3DMeasurements();
set3DMeasurement(References3D.getValues().at(0),References3D.getSubValues());
if (!(References3D.getValues()).empty()) {
set3DMeasurement(References3D.getValues().at(0),References3D.getSubValues());
}
}
DrawView::onChanged(prop);