diff options
Diffstat (limited to 'src/wm_layer.cpp')
-rw-r--r-- | src/wm_layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wm_layer.cpp b/src/wm_layer.cpp index af258e4..6131165 100644 --- a/src/wm_layer.cpp +++ b/src/wm_layer.cpp @@ -114,7 +114,7 @@ WMLayer::WMLayer(json_object* j) : before_state(), state() int end = jh::getIntFromJson(j, "id_range_end"); string name = layer_name; - if (layer_name || type || begin >=0 || end >=0) + if (layer_name || type || !begin < 0 || end < 0) { HMI_ERROR("Parse Error!!"); } |