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

  • WilfriedH

    WilfriedH - 2017-03-22
    • status: open --> accepted
    • assigned_to: Wilfried Hennings
     
  • WilfriedH

    WilfriedH - 2017-03-22

    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





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.