diff --git a/src/preparedatafunctor.cpp b/src/preparedatafunctor.cpp index c33f2677f1e..aad6ed25246 100644 --- a/src/preparedatafunctor.cpp +++ b/src/preparedatafunctor.cpp @@ -501,7 +501,8 @@ void PreparePlistFunctor::InsertInterfaceIDPair(const std::string &elementID, Pl FunctorCode PreparePlistFunctor::VisitObject(Object *object) { if (this->IsCollectingData()) { - if (object->HasInterface(INTERFACE_PLIST)) { + // Skip expansion elements because these are handled in Doc::ExpandExpansions + if (object->HasInterface(INTERFACE_PLIST) && !object->Is(EXPANSION)) { PlistInterface *interface = object->GetPlistInterface(); assert(interface); return interface->InterfacePreparePlist(*this, object);