drop inheritance of PropertyItem from BaseClass
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user