From a89e55e1e75734bc720c5346596272961a5af0f6 Mon Sep 17 00:00:00 2001 From: donovaly Date: Wed, 27 Nov 2019 00:17:07 +0100 Subject: [PATCH] DrawViewAnnotation: also call the handleChangedPropertyType of the base class --- src/Mod/TechDraw/App/DrawViewAnnotation.cpp | 3 +++ src/Mod/TechDraw/App/DrawViewAnnotation.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.cpp b/src/Mod/TechDraw/App/DrawViewAnnotation.cpp index e166b71f8e..ab9a3b511a 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.cpp +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.cpp @@ -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; diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.h b/src/Mod/TechDraw/App/DrawViewAnnotation.h index 102084a58e..edc7780120 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.h +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.h @@ -70,7 +70,7 @@ public: protected: virtual void onChanged(const App::Property* prop); - void handleChangedPropertyType(Base::XMLReader &reader, const char *TypeName, App::Property * prop); + virtual void handleChangedPropertyType(Base::XMLReader &reader, const char *TypeName, App::Property * prop); private: static const char* TextStyleEnums[];