Skip to content

Commit

Permalink
Fix Qt4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 4, 2023
1 parent c6ef9ba commit 9e53977
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Engine/Qt4/NatronEngine/recti_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,12 @@ static PyObject* Sbk_RectIFunc_intersect(PyObject* self, PyObject* args)
// intersect(RectI,RectI*)const
// Begin code injection

RectI t;
cppSelf->intersect(*cppArg0,&t);
// Original:
//RectI t;
//cppSelf->intersect(*cppArg0,&t);
// Fix after https://github.com/NatronGitHub/Natron/pull/914 :
RectI t = cppSelf->intersect(*cppArg0);

pyResult = Shiboken::Conversions::copyToPython((SbkObjectType*)SbkNatronEngineTypes[SBK_RECTI_IDX], &t);
return pyResult;

Expand All @@ -403,8 +407,11 @@ static PyObject* Sbk_RectIFunc_intersect(PyObject* self, PyObject* args)
// intersect(int,int,int,int,RectI*)const
// Begin code injection

RectI t;
cppSelf->intersect(cppArg0,cppArg1,cppArg2,cppArg3,&t);
// Original:
//RectI t;
//cppSelf->intersect(cppArg0,cppArg1,cppArg2,cppArg3,&t);
// Fix after https://github.com/NatronGitHub/Natron/pull/914 :
RectI t = cppSelf->intersect(cppArg0,cppArg1,cppArg2,cppArg3);
pyResult = Shiboken::Conversions::copyToPython((SbkObjectType*)SbkNatronEngineTypes[SBK_RECTI_IDX], &t);
return pyResult;

Expand Down

0 comments on commit 9e53977

Please sign in to comment.