Skip to content

Commit

Permalink
Do not process expansion in PreparePlistFunctor [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Aug 2, 2024
1 parent 4c62d6e commit 57818ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preparedatafunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57818ed

Please sign in to comment.