trichview.support
Re: Bug in RichView - merging styles of newly inserted rvf documents. |
Author |
Message |
Sergey Tkachenko |
Posted: 04/29/2003 19:54:55 > 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. TRVIntegerList is created and assigned to PTextStylesMapping^, i.e. to GetRootData.RVFTextStylesMapping (PTextStylesMapping is assigned to the address of GetRootData.RVFTextStylesMapping in InitStyleMapping procedure). GetRootData returns RichView.RVData. > > > 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. Ok, I attached an example. You can test it in the ActionTest demo. Insert | File, 1.rvf then Insert | File, 2.rvf With the original code, both files are inserted correctly. If you'll free style mapping at the end of the procedure, the second file will be inserted incorrectly (if inserted after the first file) begin 666 rvf.zip M4$L#!!0``@`(`->EG2Y4<$Y&8P$``/,"```%````,BYR=F:%4EU/PC 4[:;; MH&0F^N:+3DU\V\)@`7R4$1Z,0;,M\%Q8B21E):6(_@C_JK_!NX)D6_RX39OV MW'M.[VVOVW-\IV5CM^LT'=>'93?<EA]T@UZ[$[3!>>>T%)JOOHVC<2S?&87= M!T+H1*NKXX@LJ6F.N%@25AOR3"K N!<+PO##9KD*-V+-A56?B0&=DPV3Z"=F M+$F6$I'6JAI&R!G0C1F+:/J+("JEVBJF>E%-]?B1SJ7UM)(+GJT;J,(-BEP] MYY;]\"PVOD([.X=I5.;!W Y$'W@Y#12W&D+)\[")DVB<D"FC\019B;<KT9RQ M$<_H6>(E]$U&?!O3%1%$<F'J-M[#$%J"[<3K<Y%2,5FD\D77#F=5A%47KW*J MY$_A&LI8*;B$50E:J(-I:B0#U B]/EU+Q3SZ1&;H#8@D^!9*O<[+W7<4=,IW M-]DX4W_K2,C;Q@C](W4#,I<%*;\H)6CZG\X?#K O4$L#!!0``@`(`#>FG2[? MXJS=90$``/8"```%````,2YR=F:%4E%/PC 0[J9L4#(3??/%3&-\V\+&`O@H M(SP8@X8M\%Q8B21E)5U1_!7^4W^#MX)D6U2N:=-^=]_7N_:<GNW9OH6=KMVR M'0^6W7!\+^@&O78G:(/SWO85FJ^>A<>32'XP"KM/A-"9UE#'$5E1PQAQL2*L M/N2I5$#M02P)PX^;U3K<B(P+LS$7`[H@&R;1;\Q(DC0A(JE7-6HJMFDLLCYG M"?I#$I62]8O)7E63/7VB"VD^K^62IUD35;A!D:OGW+(?'L;"UVAGES!KE7DP MIP/1!UY.`\6MAE#\,FSA>#R)R8S1:(K,V TY@X*,.1OQE%[$;DRW<LS?([HF M@D@N#-W">QA"2[ 5NWTN$BJFRT2^ZMKAK(HP&^)-SI3\.5Q#&2L%E[ J00MU M,$V->(":H=NGF53,DR]DA.Z 2(+OH-2;O-Q]3T&O_/23A5/UN[:$O"V,T!&I M6Y"Q"U)>46H&WW],Z!\'V#=02P$"% `4``(`" #7I9TN5'!.1F,!``#S`@`` M!0`````````!`" `MH$`````,BYR=F902P$"% `4``(`" `WIITNW^*LW64! M``#V`@``!0`````````!`" `MH&&`0``,2YR=F902P4&``````(``@!F```` &#@,````` ` end |
Powered by ABC Amber Outlook Express Converter