Changeset 702 for trunk

Show
Ignore:
Timestamp:
09/13/10 15:32:21 (21 months ago)
Author:
mgalloy
Message:

Fixed bug where DOCTREE_FILL_LINKS would occasionally process the same comments node twice (and put it in code mode twice).

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/parser/docparrstmarkupparser__define.pro

    r686 r702  
    146146     
    147147    tag = obj_new('MGtmTag', type='link')     
    148     tag->addAttribute, 'reference', reference 
     148    tag->addAttribute, 'reference', reference     
     149    tag->addChild, obj_new('MGtmText', text=link_text) 
    149150    para->addChild, tag 
    150      
    151     tag->addChild, obj_new('MGtmText', text=link_text) 
    152151     
    153152    if (2 * i + 2 lt ntokens) then begin 
  • trunk/src/tree/doctree_fill_links.pro

    r653 r702  
    2222    if (reference eq '' && nChildren gt 0L) then begin 
    2323      nameNode = comments->getChild(0L) 
     24       
     25      ; check to make sure we haven't already made this code 
     26      if (~obj_isa(nameNode, 'MGtmText')) then return 
     27       
    2428      nameNode->getProperty, text=name       
    2529      reference = tree->lookupName(name)