Skip to content

Commit

Permalink
[renderer] Remove cap overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Apr 23, 2013
1 parent 9a64377 commit 67cb690
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/server/renderer/way_renderer.cpp
Expand Up @@ -194,10 +194,6 @@ void WayRenderer::casing(const Cairo::RefPtr<Cairo::Context>& cr)
cr->set_dash(s->casing_dashes, 0.0);
cr->set_line_width(s->casing_width*2 + s->width);

// override cap (e.g. needed when for bridges on high osm layer)
if (way->getType() == Way::WayType::CONNECTED_BOTH)
cr->set_line_cap(Cairo::LINE_CAP_BUTT);

cr->stroke();

cr->restore();
Expand Down Expand Up @@ -226,10 +222,6 @@ void WayRenderer::stroke(const Cairo::RefPtr<Cairo::Context>& cr, AssetCache& ca
cr->set_dash(s->dashes, 0.0);
cr->set_line_width(s->width);

// override cap (e.g. needed when for bridges on higher osm layer)
if (way->getType() == Way::WayType::CONNECTED_BOTH)
cr->set_line_cap(Cairo::LINE_CAP_BUTT);

cr->stroke();

cr->restore();
Expand Down

0 comments on commit 67cb690

Please sign in to comment.