You've already forked lazarus-ccr
fpspreadsheet: Fix igoring wordwrap flags when painting wordwrapped frozen cells (see forum http://forum.lazarus.freepascal.org/index.php/topic,33453.msg216815/).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5025 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -2441,24 +2441,28 @@ begin
|
||||
|
||||
if (ACol < FHeaderCount) or (ARow < FHeaderCount) then
|
||||
lCell := nil
|
||||
else begin
|
||||
if FDrawingCell = nil then
|
||||
lCell := Worksheet.FindCell(GetWorksheetRow(ARow), GetWorksheetCol(ACol))
|
||||
else
|
||||
lCell := FDrawingCell;
|
||||
lCell := FDrawingCell
|
||||
end;
|
||||
|
||||
// Header
|
||||
if lCell = nil then
|
||||
begin
|
||||
if ShowHeaders and ((ACol = 0) or (ARow = 0)) then
|
||||
if (lCell = nil) and ShowHeaders and ((ACol = 0) or (ARow = 0)) then
|
||||
begin
|
||||
ts.Alignment := taCenter;
|
||||
ts.Layout := tlCenter;
|
||||
ts.Opaque := false;
|
||||
Canvas.TextStyle := ts;
|
||||
end;
|
||||
inherited DrawCellText(aCol, aRow, aRect, aState, GetCellText(ACol,ARow));
|
||||
exit;
|
||||
end;
|
||||
|
||||
// Cells
|
||||
if lCell = nil then
|
||||
exit;
|
||||
|
||||
txt := GetCellText(GetGridRow(lCell^.Col), GetGridCol(lCell^.Row));
|
||||
if txt = '' then
|
||||
exit;
|
||||
|
Reference in New Issue
Block a user