state: check wrap_group_into_range() return value
authorRan Benita <ran234@gmail.com>
Sun, 9 Feb 2014 11:51:38 +0000 (13:51 +0200)
committerRan Benita <ran234@gmail.com>
Sun, 9 Feb 2014 12:09:42 +0000 (14:09 +0200)
commite89516e97634c2047c52d0cd9380050e4b945188
treea82cbfc8873a4e7042e261acd32ec237e60205a2
parentd53eef0d9411a94cdb0f21e2cd6cb072ea387377
state: check wrap_group_into_range() return value

It returns XKB_LAYOUT_INVALID in case num_groups == 0. So we shouldn't
just save it in the state.
Note, though, that this condition is generally impossible.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/state.c