mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
libtemporal: fix XML node structure for MusicTimePoint
This commit is contained in:
parent
1035f9bd62
commit
8124bec5a1
1 changed files with 7 additions and 2 deletions
|
|
@ -596,8 +596,8 @@ TempoMetric::superclock_at (BBT_Time const & bbt) const
|
|||
|
||||
MusicTimePoint::MusicTimePoint (TempoMap const & map, XMLNode const & node)
|
||||
: Point (map, node)
|
||||
, TempoPoint (map, node)
|
||||
, MeterPoint (map, node)
|
||||
, TempoPoint (map, *node.child (Tempo::xml_node_name.c_str()))
|
||||
, MeterPoint (map, *node.child (Meter::xml_node_name.c_str()))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -605,7 +605,12 @@ XMLNode&
|
|||
MusicTimePoint::get_state () const
|
||||
{
|
||||
XMLNode* node = new XMLNode (X_("MusicTime"));
|
||||
|
||||
Point::add_state (*node);
|
||||
|
||||
node->add_child_nocopy (Tempo::get_state());
|
||||
node->add_child_nocopy (Meter::get_state());
|
||||
|
||||
return *node;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue