Commit 239b3d47 authored by claes's avatar claes

Fix in classlink to allow links to other volumes than system classvolumes

parent e43a5bec
...@@ -58,6 +58,7 @@ int CnvWblToXtthelp::class_exec() ...@@ -58,6 +58,7 @@ int CnvWblToXtthelp::class_exec()
char link_ref[80]; char link_ref[80];
char *s; char *s;
char txt[256]; char txt[256];
char prefix[80];
int lng_sts = 1; int lng_sts = 1;
if ( Lng::current() != lng_eLanguage_en_us) if ( Lng::current() != lng_eLanguage_en_us)
...@@ -125,14 +126,12 @@ Lng::translate("Class") << " " << full_class_name << endl << ...@@ -125,14 +126,12 @@ Lng::translate("Class") << " " << full_class_name << endl <<
} }
} }
for ( i = 0; i < ctx->rw->doc_clink_cnt; i++) { for ( i = 0; i < ctx->rw->doc_clink_cnt; i++) {
if ( strncmp( ctx->rw->doc_clink_ref[i], "pwrb_", 5) == 0) strcpy( prefix, CnvCtx::low(ctx->rw->volume_name));
strcpy( link_ref, &ctx->rw->doc_clink_ref[i][5]); strcat( prefix, "_");
else if ( strncmp( ctx->rw->doc_clink_ref[i], "pwrs_", 5) == 0) if ( strncmp( ctx->rw->doc_clink_ref[i], prefix, strlen(prefix)) == 0)
strcpy( link_ref, &ctx->rw->doc_clink_ref[i][5]); strcpy( link_ref, &ctx->rw->doc_clink_ref[i][strlen(prefix)]);
else if ( strncmp( ctx->rw->doc_clink_ref[i], "nmps_", 5) == 0) else
strcpy( link_ref, &ctx->rw->doc_clink_ref[i][5]); strcpy( link_ref, ctx->rw->doc_clink_ref[i]);
else if ( strncmp( ctx->rw->doc_clink_ref[i], "ssab_", 5) == 0)
strcpy( link_ref, &ctx->rw->doc_clink_ref[i][5]);
if ( (s = strrchr( link_ref, '.'))) if ( (s = strrchr( link_ref, '.')))
*s = 0; *s = 0;
fp_tmp << " " << ctx->rw->doc_clink_text[i] << " <LINK>" << link_ref << endl; fp_tmp << " " << ctx->rw->doc_clink_text[i] << " <LINK>" << link_ref << endl;
......
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