From 77dc5f1acd4a6b66b2d6fc5c81f7e5c61ef95785 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 5 Aug 2010 02:49:51 +0200 Subject: Wholesale cruft removal part 4; fix crash when rendering guides (bzr r9508.1.48) --- src/helper/geom.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/helper') diff --git a/src/helper/geom.cpp b/src/helper/geom.cpp index c79cd829a..da5d09436 100644 --- a/src/helper/geom.cpp +++ b/src/helper/geom.cpp @@ -28,8 +28,6 @@ using Geom::X; using Geom::Y; -#define NR_HUGE 1e18 - //################################################################################# // BOUNDING BOX CALCULATIONS @@ -423,7 +421,7 @@ pathv_matrix_point_bbox_wind_distance (Geom::PathVector const & pathv, Geom::Mat { if (pathv.empty()) { if (wind) *wind = 0; - if (dist) *dist = NR_HUGE; + if (dist) *dist = Geom::infinity(); return; } -- cgit v1.2.3