Use correct property names in Meterbridge::get_state()

These property names have been "normalized"/changed to use a hyphen in the
XMLProperty ctor since 2008. That is before the Meterbridge existed so there
should be no files existing that contain these properties with underscores.
This commit is contained in:
Tim Mayberry 2017-05-25 20:52:34 +10:00
parent c72e3f16a1
commit 3747d1688c

View file

@ -526,10 +526,10 @@ Meterbridge::get_state (void)
}
XMLNode* geometry = new XMLNode ("geometry");
geometry->set_property(X_("x_size"), m_width);
geometry->set_property(X_("y_size"), m_height);
geometry->set_property(X_("x_pos"), m_root_x);
geometry->set_property(X_("y_pos"), m_root_y);
geometry->set_property(X_("x-size"), m_width);
geometry->set_property(X_("y-size"), m_height);
geometry->set_property(X_("x-pos"), m_root_x);
geometry->set_property(X_("y-pos"), m_root_y);
node->add_child_nocopy (*geometry);
node->set_property ("show-meterbridge", _visible);