[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kdoc
Subject: Minor bug with templates
From: Marcin Kasperski <Marcin.Kasperski () softax ! com ! pl>
Date: 1999-04-12 15:15:12
[Download RAW message or body]
There is another small bug in kdoc 2.0:
in kdocCxxHtml.pm the code fragment:
if ( exists $node->{Tmpl} ) {
$short .= "</p><p>Template form: <code><"
.textRef($node->{Tmpl})."> ".
esc($node->{astNodeName},
$rootnode )."</code></p><p>";
}
causes the following error:
rootnode is undef at ../../narzedzia/kdoc2/kdocHTMLutil.pm line 384
kdocHTMLutil::wordRef('class', undef) called at
../../narzedzia/kdoc2/kdocHTMLutil.pm line 413
kdocHTMLutil::textRef('class T') called at
../../narzedzia/kdoc2/kdocCxxHTML.pm line 435
kdocCxxHTML::writeClassDoc('Ast=HASH(0x8138724)') called at
../../narzedzia/kdoc2/kdocCxxHTML.pm line 72
kdocCxxHTML::writeDoc('libcrtr', 'Ast=HASH(0x80f6434)',
'GENDOC/html', 'HASH(0x80512c8)') called at ../../narzedzia/kdoc2/kdoc
line 174
Solution: change the code above adding $rootnode as second parameter for
textRef - i.e. change third line to:
.textRef($node->{Tmpl}, $rootnode)."> ".
-- Marcin Kasperski Marcin.Kasperski<at>softax.com.pl
-- marckasp<at>friko6.onet.pl
-- Moje poglądy są moimi poglądami, nikogo poza mną nie reprezentują.
-- (My opinions are just my opinions.)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic