From 2f61bd3bdab17ea12a822feeed61aee18cff3e20 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Fri, 14 Dec 2012 22:36:42 +0000 Subject: [PATCH] [geometry] pending for commit, cosmetic change, done for MeetingC++ 9/10 nov 2012 [SVN r81959] --- example/with_external_libs/x04_wxwidgets_world_mapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/with_external_libs/x04_wxwidgets_world_mapper.cpp b/example/with_external_libs/x04_wxwidgets_world_mapper.cpp index f507f4cb4..1a8bde389 100644 --- a/example/with_external_libs/x04_wxwidgets_world_mapper.cpp +++ b/example/with_external_libs/x04_wxwidgets_world_mapper.cpp @@ -357,15 +357,15 @@ void HelloWorldCanvas::DrawCountry(wxDC& dc, country_type const& country) BOOST_FOREACH(bg::model::polygon 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 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()); }