From 39ff4069c0054dce24e1562575c89553381a2407 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 10 Oct 2021 01:57:11 +0200 Subject: tabfile: fix file format version downgrade --- src/tabfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2