SDK 2023 - Bug in function AIRealRectUnion
Hi all,
The following setup is used:
- Windows 10
- Adobe Illustrator 27.8.1 (64-bit)
- SDK 2023 (downloaded 14th of August)
I want to get the union of two rectangles, using the following code:
AIRealRect testRealRect1, testRealRect2;
testRealRect1.top = 0;
testRealRect1.left = 0;
testRealRect1.bottom = 1323;
testRealRect1.right = 2116;
testRealRect2.top = 917;
testRealRect2.left = 442;
testRealRect2.bottom = 1328;
testRealRect2.right = 1662;
AIRealRect unionRealRect;
sAIRealMath->AIRealRectUnion(&testRealRect1, &testRealRect2, &unionRealRect);I am expecting the following result:
unionRealRect.top = 0
unionRealRect.left = 0
unionRealRect.bottom = 1328
unionRealRect.right = 2116
But I am getting the following result:
unionRealRect.top = 917
unionRealRect.left = 0
unionRealRect.bottom = 1323
unionRealRect.right = 2116
My question is:
Why does the function AIRealRectUnion return a union-rectangle that is only a part of testRealRect1, although it should return the union of testRealRect1 and testRealRect2?
Any help would be very appreciated.
Thanks in advance.
Fabian T.
