LCL, grids bidi fixes: autoadvance

git-svn-id: trunk@31448 -
This commit is contained in:
jesus 2011-06-29 00:29:34 +00:00
parent ab611393ae
commit ddcae0f6ae

View File

@ -7609,11 +7609,19 @@ var
DeltaCol := 0;
DeltaRow := 0;
// invert direction if necessary
//
aa := FAutoAdvance;
if Inverse then
if UseRightToLeftAlignment then
case FAutoAdvance of
aaLeftUp: aa := aaRightUp;
aaLeftDown: aa := aaRightDown;
aaLeft: aa := aaRight;
aaRightUp: aa := aaLeftUp;
aaRightDown: aa := aaLeftDown;
aaRight: aa := aaLeft;
end;
// invert direction if necessary
if Inverse then
case aa of
aaRight: aa := aaLeft;
aaLeft: aa := aaRight;
aaRightDown: aa := aaLeftUp;