From 765709ddcf51dddab814f99ddc4f6be75dd2eb05 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Tue, 15 May 2018 20:05:41 -0400 Subject: [PATCH] Fix DrawProjGroup Positioning - DrawPage was not including DPG in list of all views, so DPG was not being positioned properly. --- src/Mod/TechDraw/App/DrawPage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawPage.cpp b/src/Mod/TechDraw/App/DrawPage.cpp index 70318bd9a6..db10f9c8b1 100644 --- a/src/Mod/TechDraw/App/DrawPage.cpp +++ b/src/Mod/TechDraw/App/DrawPage.cpp @@ -347,14 +347,13 @@ std::vector DrawPage::getAllViews(void) auto views = Views.getValues(); //list of docObjects std::vector allViews; for (auto& v: views) { + allViews.push_back(v); if (v->isDerivedFrom(TechDraw::DrawProjGroup::getClassTypeId())) { TechDraw::DrawProjGroup* dpg = static_cast(v); if (dpg != nullptr) { //can't really happen! std::vector pgViews = dpg->Views.getValues(); allViews.insert(allViews.end(),pgViews.begin(),pgViews.end()); } - } else { - allViews.push_back(v); } } return allViews;