Shuttle Surface: Fix uninitialized argument in case of incomplete state
This commit is contained in:
parent
f5330d763a
commit
6227dd5b04
@ -194,10 +194,15 @@ ContourDesignControlProtocol::set_state (const XMLNode& node, int version)
|
|||||||
_button_actions[i] = b;
|
_button_actions[i] = b;
|
||||||
} else {
|
} else {
|
||||||
double value;
|
double value;
|
||||||
child->get_property(X_("value"), value);
|
|
||||||
|
|
||||||
string s;
|
string s;
|
||||||
child->get_property(X_("unit"), s);
|
|
||||||
|
if (!child->get_property(X_("value"), value)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!child->get_property(X_("unit"), s)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
JumpUnit unit;
|
JumpUnit unit;
|
||||||
if (s == X_("seconds")) {
|
if (s == X_("seconds")) {
|
||||||
unit = SECONDS;
|
unit = SECONDS;
|
||||||
|
Loading…
Reference in New Issue
Block a user