Turbopower_ipro: Add missing nil check to previous commit.

This commit is contained in:
wp_xyz 2022-05-29 16:50:28 +02:00
parent 599b6f0df5
commit f57ec3d472

View File

@ -450,7 +450,8 @@ begin
{ mirroring for RTL reading }
isRTL := (FOwner.Dir = hdRTL);
if (CurElem.Owner.ParentNode <> nil) and (CurElem.Owner.ParentNode is TIpHTMLNodeCORE) then
if (CurElem.Owner <> nil) and (CurElem.Owner.ParentNode <> nil) and
(CurElem.Owner.ParentNode is TIpHTMLNodeCORE) then
begin
rtlNode := TIpHtmlNodeCORE(CurElem.Owner.ParentNode);
if isRTL and (rtlNode.Dir = hdLTR) then