|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81959 - trunk/libs/geometry/example/with_external_libs
From: barend.gehrels_at_[hidden]
Date: 2012-12-14 17:36:43
Author: barendgehrels
Date: 2012-12-14 17:36:42 EST (Fri, 14 Dec 2012)
New Revision: 81959
URL: http://svn.boost.org/trac/boost/changeset/81959
Log:
[geometry] pending for commit, cosmetic change, done for MeetingC++ 9/10 nov 2012
Text files modified:
trunk/libs/geometry/example/with_external_libs/x04_wxwidgets_world_mapper.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/libs/geometry/example/with_external_libs/x04_wxwidgets_world_mapper.cpp
==============================================================================
--- trunk/libs/geometry/example/with_external_libs/x04_wxwidgets_world_mapper.cpp (original)
+++ trunk/libs/geometry/example/with_external_libs/x04_wxwidgets_world_mapper.cpp 2012-12-14 17:36:42 EST (Fri, 14 Dec 2012)
@@ -357,15 +357,15 @@
BOOST_FOREACH(bg::model::polygon<point_2d> const& poly, country)
{
- // Use only outer, holes are (for the moment) ignored. This would need
+ // Use only exterior ring, holes are (for the moment) ignored. This would need
// a holey-polygon compatible wx object
- std::size_t n = boost::size(poly.outer());
+ std::size_t n = boost::size(bg::exterior_ring(poly));
boost::scoped_array<wxPoint> points(new wxPoint[n]);
wxPointPointerPair pair = std::make_pair(points.get(), points.get() + n);
- bg::transform(poly.outer(), pair, *m_map_transformer);
+ bg::transform(bg::exterior_ring(poly), pair, *m_map_transformer);
dc.DrawPolygon(n, points.get());
}
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