You've already forked lazarus-ccr
fpspreadsheet: Fix new cell painting code causing a hang in case of stacked text rotation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4205 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -2791,6 +2791,7 @@ begin
|
||||
if cell <> nil then
|
||||
begin
|
||||
Result := TrimToCell(cell);
|
||||
{
|
||||
if Worksheet.ReadTextRotation(cell) = rtStacked then
|
||||
begin
|
||||
s := Result;
|
||||
@ -2801,6 +2802,7 @@ begin
|
||||
if i < Length(s) then Result := Result + LineEnding;
|
||||
end;
|
||||
end;
|
||||
}
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
@ -486,7 +486,7 @@ begin
|
||||
case AHorAlignment of
|
||||
haLeft : xpos := ARect.Left + stackPeriod div 2;
|
||||
haRight : xpos := ARect.Right - totalHeight + stackPeriod div 2;
|
||||
haCenter: xpos := (ARect.Left + ARect.Right - totalHeight) div 2;
|
||||
haCenter: xpos := (ARect.Left + ARect.Right - (Length(lineInfos)-1) * stackPeriod) div 2;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user