+ on document load set camera setting of the MDI views
This commit is contained in:
parent
4ad43e60b0
commit
fcb2714d0d
|
@ -697,8 +697,12 @@ void Document::RestoreDocFile(Base::Reader &reader)
|
||||||
sMsg += ppReturn;
|
sMsg += ppReturn;
|
||||||
if (strcmp(ppReturn, "") != 0) { // non-empty attribute
|
if (strcmp(ppReturn, "") != 0) { // non-empty attribute
|
||||||
try {
|
try {
|
||||||
if (d->_pcAppWnd->sendHasMsgToActiveView("SetCamera"))
|
const char** pReturnIgnore=0;
|
||||||
d->_pcAppWnd->sendMsgToActiveView(sMsg.c_str());
|
std::list<MDIView*> mdi = getMDIViews();
|
||||||
|
for (std::list<MDIView*>::iterator it = mdi.begin(); it != mdi.end(); ++it) {
|
||||||
|
if ((*it)->onHasMsg("SetCamera"))
|
||||||
|
(*it)->onMsg(sMsg.c_str(), pReturnIgnore);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (const Base::Exception& e) {
|
catch (const Base::Exception& e) {
|
||||||
Base::Console().Error("%s\n", e.what());
|
Base::Console().Error("%s\n", e.what());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user