Menu

#33 Error in main.c

Unstable_(example)
accepted
None
1
2017-03-22
2017-03-22
Anonymous
No

Following a post by Kornel Benko in lyx-users@lists.lyx.org there seems to be a typo in latex2rtf-2.3.12/main.c:368. This line reads:

} else if (gt_rtf_name = g_tex_name) {

but should be:

} else if (gt_rtf_name == g_tex_name) {

After inserting this patch I was able to make exporting to rtf work in LyX.

Discussion

  • Wilfried Hennings

    • status: open --> accepted
    • assigned_to: Wilfried Hennings
     
  • Wilfried Hennings

    You are right. However when compiled for MS WIndows, "==" does not detect equality of g_rtf_name and g_tex_name. Fixed by changing to
    } else if (strcmp(g_rtf_name, g_tex_name) == 0) {

     

Anonymous
Anonymous

Add attachments
Cancel