drop inheritance of PropertyItem from BaseClass

This commit is contained in:
wmayer
2016-12-13 14:53:43 +01:00
parent 19c9a9f819
commit 09e3faaad4
2 changed files with 4 additions and 4 deletions

View File

@@ -211,7 +211,7 @@ bool PropertyConstraintListItem::event (QEvent* ev)
Sketcher::PropertyConstraintList* item;
int id = 0;
if (this->parent()->getTypeId() == SketcherGui::PropertyConstraintListItem::getClassTypeId()) {
if (dynamic_cast<SketcherGui::PropertyConstraintListItem*>(this->parent())) {
item = static_cast<Sketcher::PropertyConstraintList*>(this->parent()->getFirstProperty());
}
else {