avoid assert fail on DrawPatch attach
This commit is contained in:
parent
268aa8b3ec
commit
37df199f24
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user