diff --git a/src/Gui/PropertyView.cpp b/src/Gui/PropertyView.cpp index cbdf15c2bc..fa1ebf669c 100644 --- a/src/Gui/PropertyView.cpp +++ b/src/Gui/PropertyView.cpp @@ -331,8 +331,8 @@ void PropertyView::onSelectionChanged(const SelectionChanges& msg) timer->start(ViewParams::instance()->getPropertyViewTimer()); } -void PropertyView::onTimer() { - +void PropertyView::onTimer() +{ timer->stop(); if(!this->isSelectionAttached()) { diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index b78ec0cf82..9a3fa493f4 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -252,7 +252,7 @@ void PropertyItem::insertChild(int index, PropertyItem *child) */ void PropertyItem::removeChildren(int from, int to) { - int count = to-from+1; + int count = to - from + 1; for (int i=0; ichildCount(); int first = static_cast(groupInfo.children.size()); if (last > first) { - QModelIndex midx = this->index(groupInfo.groupItem->_row,0,QModelIndex()); - beginRemoveRows(midx, first, last-1); - groupInfo.groupItem->removeChildren(first, last-1); + QModelIndex midx = this->index(groupInfo.groupItem->_row, 0, QModelIndex()); + beginRemoveRows(midx, first, last - 1); + groupInfo.groupItem->removeChildren(first, last - 1); endRemoveRows(); - } else { + } + else { assert(last == first); } }