Merge pull request #5016 from mwganson/techdraw

[TechDraw] prevent crash where user has duplicated page without depen…
This commit is contained in:
Yorik van Havre
2021-09-08 12:28:20 +02:00
committed by GitHub

View File

@@ -485,7 +485,7 @@ void MDIViewPage::fixOrphans(bool force)
* if the user duplicated the page without duplicating dependencies
*/
int numParentPages = qv->getViewObject()->countParentPages();
if (thisPage != pp && numParentPages == 1) {
if (thisPage != pp && numParentPages == 0) {
m_view->removeQView(qv);
}
}