0000672: Loading Example Drawing extraction crashes at Baseclass.cpp line 115

This commit is contained in:
wmayer
2012-04-16 15:57:10 +02:00
parent ab48b280ec
commit e558efac9d
8 changed files with 70 additions and 2 deletions

View File

@@ -968,6 +968,19 @@ std::list<MDIView*> Document::getMDIViews() const
return views;
}
std::list<MDIView*> Document::getMDIViewsOfType(const Base::Type& typeId) const
{
std::list<MDIView*> views;
for (std::list<BaseView*>::const_iterator it = d->baseViews.begin();
it != d->baseViews.end(); ++it) {
MDIView* view = dynamic_cast<MDIView*>(*it);
if (view && view->isDerivedFrom(typeId))
views.push_back(view);
}
return views;
}
/// send messages to the active view
bool Document::sendMsgToViews(const char* pMsg)
{