Fix bug 1643: Projections are always added to the first drawing page
This commit is contained in:
committed by
wmayer
parent
d5870525ff
commit
784e52ddb6
@@ -858,7 +858,10 @@ TaskOrthoViews::TaskOrthoViews(QWidget *parent)
|
||||
const char * part = obj.front()->getNameInDocument();
|
||||
|
||||
App::Document * doc = App::GetApplication().getActiveDocument();
|
||||
vector<App::DocumentObject*> pages = doc->getObjectsOfType(Drawing::FeaturePage::getClassTypeId());
|
||||
vector<App::DocumentObject*> pages = Gui::Selection().getObjectsOfType(Drawing::FeaturePage::getClassTypeId());
|
||||
if (pages.empty()) {
|
||||
pages = doc->getObjectsOfType(Drawing::FeaturePage::getClassTypeId());
|
||||
}
|
||||
string PageName = pages.front()->getNameInDocument();
|
||||
const char * page = PageName.c_str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user