|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58988 - sandbox/gtl/boost/polygon/detail
From: lucanus.j.simonson_at_[hidden]
Date: 2010-01-13 17:21:25
Author: ljsimons
Date: 2010-01-13 17:21:24 EST (Wed, 13 Jan 2010)
New Revision: 58988
URL: http://svn.boost.org/trac/boost/changeset/58988
Log:
fix for crash on empty input to property merge algorithm
Text files modified:
sandbox/gtl/boost/polygon/detail/scan_arbitrary.hpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: sandbox/gtl/boost/polygon/detail/scan_arbitrary.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/detail/scan_arbitrary.hpp (original)
+++ sandbox/gtl/boost/polygon/detail/scan_arbitrary.hpp 2010-01-13 17:21:24 EST (Wed, 13 Jan 2010)
@@ -1535,6 +1535,7 @@
//or std::map<std::vector<property_type>, polygon_set_type>
template <typename result_type>
void merge(result_type& result) {
+ if(pmd.empty()) return;
//intersect data
property_merge_data tmp_pmd;
line_intersection<Unit>::validate_scan(tmp_pmd, pmd.begin(), pmd.end());
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk