Permalink
Browse files

+ add missing miterlimit (grid,cairo)

  • Loading branch information...
1 parent fc1469a commit 8ab8f7c42015aab81ec757b33a1861bfcf962297 @artemp artemp committed Jul 4, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −1 src/cairo_renderer.cpp
  2. +0 −1 src/grid/process_line_pattern_symbolizer.cpp
  3. +2 −2 src/grid/process_line_symbolizer.cpp
View
@@ -980,7 +980,7 @@ void cairo_renderer_base::start_map_processing(Map const& map)
context.set_color(stroke_.get_color(), stroke_.get_opacity());
context.set_line_join(stroke_.get_line_join());
context.set_line_cap(stroke_.get_line_cap());
- context.set_miter_limit(4.0);
+ context.set_miter_limit(stroke_.get_miterlimit());
context.set_line_width(stroke_.get_width());
if (stroke_.has_dash())
{
@@ -89,4 +89,3 @@ template void grid_renderer<grid>::process(line_pattern_symbolizer const&,
proj_transform const&);
}
-
@@ -99,7 +99,7 @@ void grid_renderer<T>::process(line_symbolizer const& sym,
else
stroke.generator().line_cap(agg::round_cap);
- stroke.generator().miter_limit(4.0);
+ stroke.generator().miter_limit(stroke_.get_miterlimit());
stroke.generator().width(stroke_.get_width() * scale_factor_);
ras_ptr->add_path(stroke);
@@ -126,7 +126,7 @@ void grid_renderer<T>::process(line_symbolizer const& sym,
else
stroke.generator().line_cap(agg::round_cap);
- stroke.generator().miter_limit(4.0);
+ stroke.generator().miter_limit(stroke_.get_miterlimit());
stroke.generator().width(stroke_.get_width() * scale_factor_);
ras_ptr->add_path(stroke);
}

0 comments on commit 8ab8f7c

Please sign in to comment.