Skip to content

Commit 4f2585f

Browse files
committed
fix EntitiesHelper::getBounds bad bounding box computation
1 parent 3710108 commit 4f2585f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Internal/EntitiesHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ double EntitiesHelper::angle(const Utils::Entity* cec, const Utils::Entity* ce1,
646646
bool EntitiesHelper::getBounds (const std::vector<Utils::Entity*>& entities, double bounds [6])
647647
{
648648
bounds [0] = bounds [2] = bounds [4] = std::numeric_limits<double>::max();
649-
bounds [1] = bounds [3] = bounds [5] = std::numeric_limits<double>::min();
649+
bounds [1] = bounds [3] = bounds [5] = std::numeric_limits<double>::lowest();
650650
if (true == entities.empty ( ))
651651
return false;
652652

0 commit comments

Comments
 (0)