You've already forked lazarus-ccr
fpspreadsheet: Fix RTL text overflow painting in TsWorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4460 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -2178,8 +2178,13 @@ begin
|
|||||||
if CellOverflow(gc, gr, gds, gc1, gc2, rct) then
|
if CellOverflow(gc, gr, gds, gc1, gc2, rct) then
|
||||||
begin
|
begin
|
||||||
// Draw individual cells of the overflown range
|
// Draw individual cells of the overflown range
|
||||||
ColRowToOffset(true, true, gc1, rct.Left, tmp); // rct is the clip rect
|
if IsRightToLeft then begin
|
||||||
ColRowToOffset(true, true, gc2, tmp, rct.Right);
|
ColRowToOffset(true, true, gc1, tmp, rct.Right);
|
||||||
|
ColRowToOffset(true, true, gc2, rct.Left, tmp);
|
||||||
|
end else begin
|
||||||
|
ColRowToOffset(true, true, gc1, rct.Left, tmp); // rct is the clip rect
|
||||||
|
ColRowToOffset(true, true, gc2, tmp, rct.Right);
|
||||||
|
end;
|
||||||
FDrawingCell := nil;
|
FDrawingCell := nil;
|
||||||
temp_rct := rct;
|
temp_rct := rct;
|
||||||
for i := gc1 to gc2 do begin
|
for i := gc1 to gc2 do begin
|
||||||
|
Reference in New Issue
Block a user