From a5dead1717521770e311974e1aa5dd92963b542e Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Thu, 16 Mar 2017 00:43:38 +0800 Subject: [PATCH] Gui.TreeWidget: removed incorrect assertion --- src/Gui/Tree.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 12f6b3f930..73799cd14d 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -1003,7 +1003,6 @@ void DocumentItem::slotNewObject(DocumentObjectItem *parent, std::string name = obj.getObject()->getNameInDocument(); auto &ptrs = ObjectMap[name]; if(!ptrs) { - assert(parent==NULL); ptrs.reset(new DocumentObjectItems); }else if(ptrs->size() && parent==NULL) { Base::Console().Warning("DocumentItem::slotNewObject: Cannot add view provider twice.\n");