diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index 003339739..154a30b5d 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -697,8 +697,12 @@ void Document::RestoreDocFile(Base::Reader &reader) sMsg += ppReturn; if (strcmp(ppReturn, "") != 0) { // non-empty attribute try { - if (d->_pcAppWnd->sendHasMsgToActiveView("SetCamera")) - d->_pcAppWnd->sendMsgToActiveView(sMsg.c_str()); + const char** pReturnIgnore=0; + std::list mdi = getMDIViews(); + for (std::list::iterator it = mdi.begin(); it != mdi.end(); ++it) { + if ((*it)->onHasMsg("SetCamera")) + (*it)->onMsg(sMsg.c_str(), pReturnIgnore); + } } catch (const Base::Exception& e) { Base::Console().Error("%s\n", e.what());