LCL: Fixed access violation with Application.BidiMode bdRightToLeft and ChildSizing.Layout cclTopToBottomThenLeftToRight. Issue #31966

git-svn-id: trunk@55213 -
This commit is contained in:
michl 2017-06-04 15:40:37 +00:00
parent 6aaa231cec
commit f7785d9196

View File

@ -1563,7 +1563,7 @@ begin
Col:=i div LineMax;
Row:=i mod LineMax;
if (BiDiMode=bdRightToLeft) then
Col:=LineMax-Col-1;
Col:=ChildCount[asboHorizontal]-Col-1;
ChildBox:=Children[asboVertical][Row].Children[asboHorizontal][Col];
ChildBox.SetControl(ChildControl);
ChildBox.ApplyChildsizingBorders(ChildSizing);