diff -r f6b253c17643 -r 0256edecda54 src/toolsets/viewtoolset.cpp --- a/src/toolsets/viewtoolset.cpp Sat Mar 03 17:28:27 2018 +0200 +++ b/src/toolsets/viewtoolset.cpp Sat Mar 03 17:47:40 2018 +0200 @@ -80,7 +80,7 @@ types << obj->type(); if (obj->type() == LDObjectType::SubfileReference) - subfilenames << static_cast (obj)->fileInfo()->name(); + subfilenames << static_cast(obj)->fileInfo(m_documents)->name(); } QItemSelection selection; @@ -95,7 +95,7 @@ // For subfiles, type check is not enough, we check the name of the document as well. if (type == LDObjectType::SubfileReference - and not subfilenames.contains (static_cast (obj)->fileInfo()->name())) + and not subfilenames.contains(static_cast(obj)->fileInfo(m_documents)->name())) { continue; }