Commit b05b5bc4 authored by claes's avatar claes

Bugfix in classlink

parent b176fe6e
......@@ -1018,9 +1018,12 @@ int CnvReadWbl::doc_add( char *line)
if ( i == nr - 1)
strcpy( doc_link_ref[doc_link_cnt], line_part[i]);
else {
if ( i != 2)
strcat( doc_link_text[doc_link_cnt], " ");
strcat( doc_link_text[doc_link_cnt], line_part[i]);
if ( i == 2)
strcpy( doc_clink_text[doc_clink_cnt], line_part[i]);
else {
strcat( doc_clink_text[doc_clink_cnt], " ");
strcat( doc_clink_text[doc_clink_cnt], line_part[i]);
}
}
}
doc_link_cnt++;
......@@ -1034,9 +1037,12 @@ int CnvReadWbl::doc_add( char *line)
if ( i == nr - 1)
strcpy( doc_clink_ref[doc_clink_cnt], line_part[i]);
else {
if ( i != 2)
if ( i == 2)
strcpy( doc_clink_text[doc_clink_cnt], line_part[i]);
else {
strcat( doc_clink_text[doc_clink_cnt], " ");
strcat( doc_clink_text[doc_clink_cnt], line_part[i]);
strcat( doc_clink_text[doc_clink_cnt], line_part[i]);
}
}
}
doc_clink_cnt++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment