trichview.com

trichview.support




Re: Bug in RichView - merging styles of newly inserted rvf documents.


Return to index


Author

Message

John Wertz

Posted: 04/29/2003 18:44:24


> Imagine loading RVF document containing table in "style merge" mode.

> First, styles from RVF are loaded and style mappings are initialized.

> Next, the first cell is loaded (using these style mappings). Assume that

> this cell freed style mappings.

> The next cell is loaded. But the style mappings are nil, and this cell is

> loaded in "ignore styles" mode. The same for rest of the document.


This is incorrect. Only the TRVIntegerList created in MergeStyles and used

in TCustomRVInfos.MergeWith is freed. The rvf styles of the document are

still available and used by the document and table cells.


> The next cell is loaded. But the style mappings are nil, and this cell is

> loaded in "ignore styles" mode. The same for rest of the document.


No, MergeStyles creates a new empty list and passes it to Base.MergeWith.

The styles are correctly merged and the cell data is displayed correctly.










Powered by ABC Amber Outlook Express Converter