Remove attempt to retrieve invalid Meterbridge properties
The property names with underscores are "normalized" to replace the underscores with hyphens in the XMLProperty constructor from within Meterbridge::get_state and so have always been written with hyphens.
This commit is contained in:
parent
3747d1688c
commit
af8d027fc5
@ -494,20 +494,11 @@ Meterbridge::set_state (const XMLNode& node)
|
|||||||
m_root_y = 1;
|
m_root_y = 1;
|
||||||
|
|
||||||
if ((geometry = find_named_node (node, "geometry")) != 0) {
|
if ((geometry = find_named_node (node, "geometry")) != 0) {
|
||||||
|
|
||||||
if (!geometry->get_property ("x_size", m_width)) {
|
|
||||||
geometry->get_property ("x-size", m_width);
|
geometry->get_property ("x-size", m_width);
|
||||||
}
|
|
||||||
if (!geometry->get_property("y_size", m_height)) {
|
|
||||||
geometry->get_property ("y-size", m_height);
|
geometry->get_property ("y-size", m_height);
|
||||||
}
|
|
||||||
if (!geometry->get_property ("x_pos", m_root_x)) {
|
|
||||||
geometry->get_property ("x-pos", m_root_x);
|
geometry->get_property ("x-pos", m_root_x);
|
||||||
}
|
|
||||||
if (!geometry->get_property ("y_pos", m_root_y)) {
|
|
||||||
geometry->get_property ("y-pos", m_root_y);
|
geometry->get_property ("y-pos", m_root_y);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
set_window_pos_and_size ();
|
set_window_pos_and_size ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user