TD: Trim trailing newlines

This commit is contained in:
luzpaz
2024-07-13 15:50:05 +00:00
committed by wwmayer
parent 25e8aacbe3
commit 9c6e78b5cb
4 changed files with 7 additions and 7 deletions

View File

@@ -152,8 +152,8 @@ void DrawViewCollection::rebuildViewList()
const std::vector<App::DocumentObject*> currViews = Views.getValues();
std::vector<App::DocumentObject*> newViews;
for (auto* child : getOutList()) {
if (child->isDerivedFrom<DrawView>() ||
(child->isDerivedFrom<App::Link>()
if (child->isDerivedFrom<DrawView>() ||
(child->isDerivedFrom<App::Link>()
&& static_cast<App::Link*>(child)->getLinkedObject()->isDerivedFrom<DrawView>())) {
bool found = false;
for (auto& v:currViews) {