r17113 - gnucash/branches/2.2/src/gnome - [r17089] Look for Align_n keys in check printing formats (#467529)
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Apr 20 15:25:10 EDT 2008
Author: andi5
Date: 2008-04-20 15:25:10 -0400 (Sun, 20 Apr 2008)
New Revision: 17113
Trac: http://svn.gnucash.org/trac/changeset/17113
Modified:
gnucash/branches/2.2/src/gnome/dialog-print-check.c
Log:
[r17089] Look for Align_n keys in check printing formats (#467529)
Committed by warlord.
Modified: gnucash/branches/2.2/src/gnome/dialog-print-check.c
===================================================================
--- gnucash/branches/2.2/src/gnome/dialog-print-check.c 2008-04-20 19:25:00 UTC (rev 17112)
+++ gnucash/branches/2.2/src/gnome/dialog-print-check.c 2008-04-20 19:25:10 UTC (rev 17113)
@@ -721,9 +721,9 @@
}
g_free(key);
+ key = g_strdup_printf("%s_%d", KF_KEY_ALIGN, item_num);
value =
- g_key_file_get_string(key_file, KF_GROUP_ITEMS, KF_KEY_ALIGN,
- &error);
+ g_key_file_get_string(key_file, KF_GROUP_ITEMS, key, &error);
if (!error) {
g_debug("Check file %s, group %s, key %s, value: %s",
file, KF_GROUP_ITEMS, key, value);
@@ -744,6 +744,7 @@
data->align = PANGO_ALIGN_LEFT;
g_clear_error(&error);
}
+ g_free(key);
}
/* Get any extra data for specific items. */
switch (data->type) {
More information about the gnucash-changes
mailing list