summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-02-05 16:01:56 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-02-07 21:24:38 +1030
commit96eafa3d4f05997dac8be6a8d66a92410511824c (patch)
treea0dfd4b753759a2525f88817ad66d983d12251c1 /xkb
parente5e531ce96264518f278f572a4d0bfcd345aa618 (diff)
xkb: when copying sections, make sure num_rows is set too.
(cherry picked from commit 41991fb991313202e8e6b513fe928ba14f8fcb87)
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbUtils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 68ecb32d8..740bc7d49 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -1809,6 +1809,7 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies)
return FALSE;
dsection->rows = tmp;
}
+ dsection->num_rows = ssection->num_rows;
for (j = 0, srow = ssection->rows, drow = dsection->rows;
j < ssection->num_rows;
j++, srow++, drow++) {