From fcb2714d0da44c0adc93b28250a0b2311565687e Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 12 Aug 2014 00:07:16 +0200 Subject: [PATCH] + on document load set camera setting of the MDI views --- src/Gui/Document.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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());