summaryrefslogtreecommitdiff
path: root/xkb/xkbUtils.c
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-05 19:05:18 +1030
commit41991fb991313202e8e6b513fe928ba14f8fcb87 (patch)
tree62662629d8dab8332ad739a9197942eb61975d9e /xkb/xkbUtils.c
parent521a7f26e088029707fb9a2bb80c9ddc734a3f8b (diff)
xkb: when copying sections, make sure num_rows is set too.
Diffstat (limited to 'xkb/xkbUtils.c')
-rw-r--r--xkb/xkbUtils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 1fb47ed56..9f813e5e3 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -1806,6 +1806,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++) {