--- psiconv/trunk/lib/psiconv/generate_common.c 2004/02/26 16:27:43 233 +++ psiconv/trunk/lib/psiconv/generate_common.c 2014/10/22 19:53:40 351 @@ -1,6 +1,6 @@ /* generate_common.c - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 2000-2004 Frodo Looijaard + Copyright (c) 2000-2014 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -236,7 +236,7 @@ /* We need it for the next if-statement */ if (psiconv_list_length(paragraph->in_lines) == 1) - if (!(in_line = psiconv_list_get(paragraph->in_lines,1))) { + if (!(in_line = psiconv_list_get(paragraph->in_lines,0))) { psiconv_error(config,lev+1,0,"Data structure corruption"); res = -PSICONV_E_NOMEM; goto ERROR6;