DrawViewAnnotation: also call the handleChangedPropertyType of the base class

This commit is contained in:
donovaly
2019-11-27 00:17:07 +01:00
committed by WandererFan
parent f7ca1d91d3
commit a89e55e1e7
2 changed files with 4 additions and 1 deletions

View File

@@ -100,6 +100,9 @@ void DrawViewAnnotation::onChanged(const App::Property* prop)
void DrawViewAnnotation::handleChangedPropertyType(Base::XMLReader &reader, const char *TypeName, App::Property *prop)
// transforms properties that had been changed
{
// also check for changed properties of the base class
DrawView::handleChangedPropertyType(reader, TypeName, prop);
// property LineSpace had the App::PropertyInteger and was changed to App::PropertyPercent
if (prop == &LineSpace && strcmp(TypeName, "App::PropertyInteger") == 0) {
App::PropertyInteger LineSpaceProperty;