Merge pull request #5016 from mwganson/techdraw
[TechDraw] prevent crash where user has duplicated page without depen…
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user