1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Parallelogram: Fix implementations of isEmpty and operator-=

Previously, isEmpty sometimes incorrectly returned true for non-empty
parallelograms.

operator-= called itself, leading to infinite recursion.
This commit is contained in:
reuk 2024-04-29 15:02:42 +01:00
parent 83dcaf3c39
commit 44a04370a9
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
37 changed files with 177 additions and 3 deletions

View file

@ -1621,6 +1621,7 @@ add_library( ${BINARY_NAME}
"../../../../../modules/juce_graphics/geometry/juce_EdgeTable.h"
"../../../../../modules/juce_graphics/geometry/juce_Line.h"
"../../../../../modules/juce_graphics/geometry/juce_Parallelogram.h"
"../../../../../modules/juce_graphics/geometry/juce_Parallelogram_test.cpp"
"../../../../../modules/juce_graphics/geometry/juce_Path.cpp"
"../../../../../modules/juce_graphics/geometry/juce_Path.h"
"../../../../../modules/juce_graphics/geometry/juce_PathIterator.cpp"
@ -3879,6 +3880,7 @@ set_source_files_properties(
"../../../../../modules/juce_graphics/geometry/juce_EdgeTable.h"
"../../../../../modules/juce_graphics/geometry/juce_Line.h"
"../../../../../modules/juce_graphics/geometry/juce_Parallelogram.h"
"../../../../../modules/juce_graphics/geometry/juce_Parallelogram_test.cpp"
"../../../../../modules/juce_graphics/geometry/juce_Path.cpp"
"../../../../../modules/juce_graphics/geometry/juce_Path.h"
"../../../../../modules/juce_graphics/geometry/juce_PathIterator.cpp"

View file

@ -1846,6 +1846,9 @@
<ClCompile Include="..\..\..\..\modules\juce_graphics\geometry\juce_EdgeTable.cpp">
<ExcludedFromBuild>true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\..\..\modules\juce_graphics\geometry\juce_Parallelogram_test.cpp">
<ExcludedFromBuild>true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\..\..\modules\juce_graphics\geometry\juce_Path.cpp">
<ExcludedFromBuild>true</ExcludedFromBuild>
</ClCompile>

View file

@ -2479,6 +2479,9 @@
<ClCompile Include="..\..\..\..\modules\juce_graphics\geometry\juce_EdgeTable.cpp">
<Filter>JUCE Modules\juce_graphics\geometry</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\modules\juce_graphics\geometry\juce_Parallelogram_test.cpp">
<Filter>JUCE Modules\juce_graphics\geometry</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\modules\juce_graphics\geometry\juce_Path.cpp">
<Filter>JUCE Modules\juce_graphics\geometry</Filter>
</ClCompile>