Skip to content

Commit

Permalink
fix: find referenced zone and surface
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Jan 31, 2025
1 parent 055d3ba commit a24707c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Support for `verse@place` for lyrics above the staff
* Support for MIDI octave displacement without `@oct.ges` (@brdvd)
* Option `--lyric-height-factor` to increase the spacing of the lyrics
* Fix `symbolDef` losing `@xml:id`s with `--remove-ids` (@rettinghaus)
* Fix `surface`, `symbolDef`, and `zone` losing `@xml:id`s with `--remove-ids` (@rettinghaus)

## [4.5.0] – 2024-12-22
* Integration of tablature customization implementation
Expand Down
8 changes: 8 additions & 0 deletions src/findfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
#include "object.h"
#include "plistinterface.h"
#include "score.h"
#include "surface.h"
#include "symboldef.h"
#include "zone.h"

namespace vrv {

Expand Down Expand Up @@ -273,6 +275,12 @@ FunctorCode FindAllReferencedObjectsFunctor::VisitObject(Object *object)
if (interface->GetNextLink()) m_elements->push_back(interface->GetNextLink());
if (interface->GetSameasLink()) m_elements->push_back(interface->GetSameasLink());
}
if (object->HasInterface(INTERFACE_FACSIMILE)) {
FacsimileInterface *interface = object->GetFacsimileInterface();
assert(interface);
if (interface->GetSurface()) m_elements->push_back(interface->GetSurface());
if (interface->GetZone()) m_elements->push_back(interface->GetZone());
}
if (object->HasInterface(INTERFACE_PLIST)) {
PlistInterface *interface = object->GetPlistInterface();
assert(interface);
Expand Down

0 comments on commit a24707c

Please sign in to comment.