Closed GoogleCodeExporter closed 9 years ago
Original comment by axelclk@gmail.com
on 30 Apr 2009 at 4:26
I ran into this one tonight, and was able to track down the cause. It is
caused by cloning the toc tag, but continuing to use the the toc anchor list
from the cloned object. The one-liner fix is below.
Thanks for the awesome library!
### Eclipse Workspace Patch 1.0
#P info.bliki.wiki
Index: bliki-core/src/main/java/info/bliki/wiki/model/AbstractWikiModel.java
===================================================================
---
bliki-core/src/main/java/info/bliki/wiki/model/AbstractWikiModel.java (revision
3603)
+++
bliki-core/src/main/java/info/bliki/wiki/model/AbstractWikiModel.java (working
copy)
@@ -883,6 +883,7 @@
tableOfContentTag.setShowToC(true);
tableOfContentTag.setTOCIdentifier(isTOCIdentifier);
fTableOfContentTag = tableOfContentTag;
+ fTableOfContent = null;
// } catch (CloneNotSupportedException e) {
// e.printStackTrace();
// }
Original comment by HebnerN@gmail.com
on 9 Jun 2011 at 7:54
Patch commited with r3604
Original comment by axelclk@gmail.com
on 9 Jun 2011 at 5:39
Original issue reported on code.google.com by
steven.b...@gmail.com
on 30 Apr 2009 at 4:17