TD: add units for line widths

- this also prevents negative values
- also fix an issue in DrawViewBalloon introduced by me recently
This commit is contained in:
donovaly
2019-12-07 04:26:15 +01:00
committed by WandererFan
parent 70be2a2bff
commit bb2db008ad
3 changed files with 38 additions and 6 deletions

View File

@@ -136,8 +136,8 @@ void DrawViewBalloon::handleChangedPropertyType(Base::XMLReader &reader, const c
// property OriginX had the App::PropertyFloat and was changed to App::PropertyLength
if (prop == &OriginX && strcmp(TypeName, "App::PropertyFloat") == 0) {
App::PropertyInteger OriginXProperty;
// restore the PropertyInteger to be able to set its value
App::PropertyFloat OriginXProperty;
// restore the PropertyFloat to be able to set its value
OriginXProperty.Restore(reader);
OriginX.setValue(OriginXProperty.getValue());
}