aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-10 01:57:11 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-10 01:57:51 +0200
commit39ff4069c0054dce24e1562575c89553381a2407 (patch)
tree7ead43bef769e48eb2d0347f292217c9efca1201 /src
parentfbfd8c7d027f054eacb7384787cf665e4822eda6 (diff)
downloadtdv-39ff4069c0054dce24e1562575c89553381a2407.tar.gz
tdv-39ff4069c0054dce24e1562575c89553381a2407.tar.xz
tdv-39ff4069c0054dce24e1562575c89553381a2407.zip
tabfile: fix file format version downgrade
Diffstat (limited to 'src')
-rw-r--r--src/tabfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tabfile.c b/src/tabfile.c
index 053748c..fa67303 100644
--- a/src/tabfile.c
+++ b/src/tabfile.c
@@ -182,6 +182,7 @@ main (int argc, char *argv[])
fatal ("%s", g_option_context_get_help (ctx, TRUE, FALSE));
g_option_context_free (ctx);
+ template.version = SD_VERSION_3_0_0;
template.same_type_sequence = pango_markup
? (char[]) { STARDICT_FIELD_PANGO, 0 }
: (char[]) { STARDICT_FIELD_MEANING, 0 };
@@ -211,9 +212,7 @@ main (int argc, char *argv[])
error->message);
StardictInfo *info = generator->info;
- info->version = SD_VERSION_3_0_0;
stardict_info_copy (info, &template);
-
if (!transform (fsorted, generator, &error)
|| !generator_finish (generator, &error))
fatal ("Error: failed to write the dictionary: %s\n", error->message);