Ignore:
Timestamp:
Jan 8, 2001, 6:54:48 PM (25 years ago)
Author:
umoeller
Message:

Final changes for 0.9.7, i hope...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/textv_html.c

    r14 r21  
    5656/*
    5757 *@@category: Helpers\PM helpers\Window classes\XTextView control\HTML conversion
     58 *      see textv_html.c.
    5859 */
    5960
     
    20602061    ULONG   cbSource = strlen(*ppszText);
    20612062
     2063    XHTMLDATA xhtmlTemp = {0};
     2064    BOOL fUsingTemp = FALSE;
    20622065    COPYTARGET  ct = {0};
    20632066
     
    20692072    ct.fSkipNextSpace = TRUE;
    20702073    ct.pxhtml = (PXHTMLDATA)pxhtml;
     2074    if (ct.pxhtml == NULL)  // not specified:
     2075    {
     2076        ct.pxhtml = &xhtmlTemp;
     2077        fUsingTemp = TRUE;
     2078    }
     2079
     2080    lstInit(&ct.pxhtml->llLinks, TRUE);       // auto-free
    20712081
    20722082    // step 2:
     
    22182228    lstClear(&ct.llLists);
    22192229
     2230    if (fUsingTemp)
     2231    {
     2232        if (xhtmlTemp.pszTitle)
     2233            free(xhtmlTemp.pszTitle);
     2234        lstClear(&xhtmlTemp.llLinks);
     2235                // ### better really clear this... there are PSZ's inside
     2236    }
     2237
    22202238    return (brc);
    22212239}
Note: See TracChangeset for help on using the changeset viewer.