Skip to content

Commit 824cf1e

Browse files
committed
Fix crash in Demo31. Accessing DelphiObject properties without calling Adjust(@self) in WrapVclComCtrls.pas.
1 parent 76ef159 commit 824cf1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/vcl/WrapVclComCtrls.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ function TPyDelphiPageControl.GetHitTestInfoAt_Wrapper(
351351

352352
function TPyDelphiPageControl.Get_ActivePage(AContext: Pointer): PPyObject;
353353
begin
354+
Adjust(@Self);
354355
Result := Wrap(DelphiObject.ActivePage);
355356
end;
356357

@@ -364,6 +365,7 @@ function TPyDelphiPageControl.Get_ActivePageIndex(
364365
{$IFNDEF FPC}
365366
function TPyDelphiPageControl.Get_Canvas(AContext: Pointer): PPyObject;
366367
begin
368+
Adjust(@Self);
367369
Result := Wrap(DelphiObject.Canvas);
368370
end;
369371
{$ENDIF FPC}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy