You've already forked lazarus-ccr
fpspreadsheet: Fix rewinding error of rtf memory stream when reading biff8 (see forum http://forum.lazarus.freepascal.org/index.php/topic,34150.msg223013)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5207 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -14,9 +14,6 @@
|
||||
<i18n>
|
||||
<EnableI18N LFM="False"/>
|
||||
</i18n>
|
||||
<VersionInfo>
|
||||
<StringTable ProductVersion=""/>
|
||||
</VersionInfo>
|
||||
<BuildModes Count="2">
|
||||
<Item1 Name="Debug" Default="True"/>
|
||||
<Item2 Name="Release">
|
||||
|
@ -1421,7 +1421,7 @@ begin
|
||||
end else
|
||||
cell := FWorksheet.AddCell(ARow, ACol);
|
||||
|
||||
FWorksheet.WriteText(cell, FSharedStringTable[SSTIndex]);
|
||||
FWorksheet.WriteText(cell, FSharedStringTable.Strings[SSTIndex]);
|
||||
|
||||
{ Add attributes }
|
||||
ApplyCellFormatting(cell, XF);
|
||||
@ -1429,6 +1429,7 @@ begin
|
||||
{ Add rich text formatting }
|
||||
ms := TMemoryStream(FSharedStringTable.Objects[SSTIndex]);
|
||||
if ms <> nil then begin
|
||||
ms.Position := 0;
|
||||
n := WordLEToN(ms.ReadWord);
|
||||
SetLength(rtParams, n);
|
||||
ms.ReadBuffer(rtParams[0], n*SizeOf(TsRichTextParam));
|
||||
|
Reference in New Issue
Block a user