avoid assert fail on DrawPatch attach

This commit is contained in:
WandererFan 2016-04-26 12:54:28 -04:00 committed by wmayer
parent 268aa8b3ec
commit 37df199f24
2 changed files with 3 additions and 0 deletions

View File

@ -332,6 +332,8 @@ int MDIViewPage::attachView(App::DocumentObject *obj)
} else if(obj->getTypeId().isDerivedFrom(TechDraw::DrawViewClip::getClassTypeId()) ) {
TechDraw::DrawViewClip *viewClip = dynamic_cast<TechDraw::DrawViewClip *>(obj);
qview = m_view->addDrawViewClip(viewClip);
} else if(obj->getTypeId().isDerivedFrom(TechDraw::DrawHatch::getClassTypeId()) ) {
//Hatch is not attached like other Views (since it isn't really a View)
} else {
Base::Console().Log("Logic Error - Unknown view type in MDIViewPage::attachView\n");
}

View File

@ -56,6 +56,7 @@
#include <Mod/TechDraw/App/DrawViewAnnotation.h>
#include <Mod/TechDraw/App/DrawViewSymbol.h>
#include <Mod/TechDraw/App/DrawViewClip.h>
#include "../App/DrawHatch.h"
#include "QGIDrawingTemplate.h"