Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix - a proper bugfix for rewinding geometry in building symbolizer

  • Loading branch information...
commit 23631d31a8589a36429c0340f735edda912c0ea4 1 parent 68febbd
@tarnowsc authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/agg/process_building_symbolizer.cpp
View
5 src/agg/process_building_symbolizer.cpp
@@ -85,6 +85,8 @@ void agg_renderer<T>::process(building_symbolizer const& sym,
std::deque<segment_t> face_segments;
double x0(0);
double y0(0);
+
+ geom.rewind(0);
unsigned cm = geom.vertex(&x0,&y0);
for (unsigned j=1;j<geom.num_points();++j)
{
@@ -123,8 +125,8 @@ void agg_renderer<T>::process(building_symbolizer const& sym,
frame->move_to(itr->get<0>(),itr->get<1>());
frame->line_to(itr->get<0>(),itr->get<1>()+height);
}
+
geom.rewind(0);
-
for (unsigned j=0;j<geom.num_points();++j)
{
double x,y;
@@ -140,7 +142,6 @@ void agg_renderer<T>::process(building_symbolizer const& sym,
roof->line_to(x,y+height);
}
}
- geom.rewind(0);
path_type path(t_,*frame,prj_trans);
agg::conv_stroke<path_type> stroke(path);
Please sign in to comment.
Something went wrong with that request. Please try again.