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:
wp_xxyyzz
2016-01-23 14:26:08 +00:00
parent 845e9d8626
commit d4acf83c51

View File

@ -2178,8 +2178,13 @@ begin
if CellOverflow(gc, gr, gds, gc1, gc2, rct) then
begin
// Draw individual cells of the overflown range
ColRowToOffset(true, true, gc1, rct.Left, tmp); // rct is the clip rect
ColRowToOffset(true, true, gc2, tmp, rct.Right);
if IsRightToLeft then begin
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;
temp_rct := rct;
for i := gc1 to gc2 do begin