You've already forked lazarus-ccr
fpspreadsheet: Fix grid painting issue in RTL mode (incorrect left border of cliprect in InternalDrawRow)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5777 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -601,7 +601,6 @@ type
|
||||
property MouseWheelOption;
|
||||
{@@ inherited from TCustomGrid. Select the option goEditing to make the grid editable! }
|
||||
property Options;
|
||||
//property ParentBiDiMode;
|
||||
{@@ inherited from ancestors }
|
||||
property ParentBiDiMode;
|
||||
{@@ inherited from ancestors}
|
||||
@ -3543,8 +3542,12 @@ begin
|
||||
gc := AFirstCol;
|
||||
gcLast := ALastCol;
|
||||
clipArea := Canvas.ClipRect;
|
||||
if FHeaderCount > 0 then
|
||||
ColRowToOffset(true, false, 0, tmp, clipArea.Left);
|
||||
if FHeaderCount > 0 then begin
|
||||
if IsRightToLeft then
|
||||
ColRowToOffset(true, true, 0, clipArea.Right,tmp)
|
||||
else
|
||||
ColRowToOffset(true, true, 0, tmp, clipArea.Left);
|
||||
end;
|
||||
|
||||
with GCache.VisibleGrid do
|
||||
begin
|
||||
|
Reference in New Issue
Block a user