mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
avoid overflowing
This commit is contained in:
parent
59b666cb77
commit
ebd183d58e
@ -143,8 +143,8 @@ void agg_renderer<T0,T1>::process(polygon_pattern_symbolizer const& sym,
|
||||
path_type path(common_.t_,clipped,prj_trans);
|
||||
path.vertex(&x0,&y0);
|
||||
}
|
||||
offset_x = unsigned(current_buffer_->width() - x0);
|
||||
offset_y = unsigned(current_buffer_->height() - y0);
|
||||
offset_x = std::abs(current_buffer_->width() - x0);
|
||||
offset_y = std::abs(current_buffer_->height() - y0);
|
||||
}
|
||||
|
||||
span_gen_type sg(img_src, offset_x, offset_y);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user