summaryrefslogtreecommitdiff
path: root/gtk/gen-paper-names.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-12-23 21:00:53 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-12-23 21:00:53 +0000
commita35e29588080ef902640aad9db26d9da436f771d (patch)
treea2d0fce3c68f10a88544eff7e448064c280b8ffe /gtk/gen-paper-names.c
parentcd1c63583c98de32baf633730e6eb7022fd4b495 (diff)
downloadgtk+-a35e29588080ef902640aad9db26d9da436f771d.tar.gz
Fix a thinko in the suffix calculation. (#382369, Christian Persch)
2006-12-23 Matthias Clasen <mclasen@redhat.com> * gtk/gen-paper-names.c: Fix a thinko in the suffix calculation. (#382369, Christian Persch) * gtk/paper_names_offsets.c: Regenerated.
Diffstat (limited to 'gtk/gen-paper-names.c')
-rw-r--r--gtk/gen-paper-names.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gen-paper-names.c b/gtk/gen-paper-names.c
index d71d805c36..1bd47fe77f 100644
--- a/gtk/gen-paper-names.c
+++ b/gtk/gen-paper-names.c
@@ -169,7 +169,10 @@ main (int argc, char *argv[])
{
if (names[i].suffix != -1)
{
- j = names[i].suffix;
+ j = i;
+ do {
+ j = names[j].suffix;
+ } while (names[j].suffix != -1);
names[i].offset = names[j].offset + names[j].len - names[i].len;
}
}