IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10431


Ignore:
Timestamp:
Dec 4, 2006, 11:21:28 AM (20 years ago)
Author:
jhoblitt
Message:

fix " " -> "_" substitution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/printmetadataraw.tt

    r10323 r10431  
    3939            METADATAITEM_STRIFY_CASE(PS_DATA_F64, "%f", F64);
    4040            case PS_DATA_STRING:
    41                 psStringSubstitute(str, " ", "_");
    42                 psStringAppend(&str, "%s", item->data.str);
     41                if (item->data.str) {
     42                    psString tmpStr = psStringCopy(item->data.str);
     43                    psStringSubstitute(tmpStr, "_", " ");
     44                    psStringAppend(&str, "%s", tmpStr);
     45                    psFree(tmpStr);
     46                }
    4347                break;
    4448            case PS_DATA_BOOL:
Note: See TracChangeset for help on using the changeset viewer.