add drawing view to the list of document views

This commit is contained in:
wmayer
2012-03-31 14:09:47 +02:00
parent 170ab978fb
commit 3f06cf75ea
5 changed files with 12 additions and 9 deletions

View File

@@ -1006,9 +1006,9 @@ MDIView* Document::getActiveView(void) const
}
}
// the active view is not part of this document, just use the first view
// the active view is not part of this document, just use the last view
if (!ok && !mdis.empty())
active = mdis.front();
active = mdis.back();
return active;
}