Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Better structure fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
lseelenbinder authored and tmpsantos committed Apr 17, 2020
1 parent 40cfb77 commit efe604c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mbgl/layout/symbol_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,10 @@ void SymbolLayout::addFeature(const std::size_t layoutFeatureIndex,
} else if (type == FeatureType::LineString) {
for (const auto& line : feature.geometry) {
// Skip invalid LineStrings.
if (line.size() > 0) {
Anchor anchor(line[0].x, line[0].y, 0, minScale);
addSymbolInstance(anchor, createSymbolInstanceSharedData(line));
}
if (line.empty()) continue;

Anchor anchor(line[0].x, line[0].y, 0, minScale);
addSymbolInstance(anchor, createSymbolInstanceSharedData(line));
}
} else if (type == FeatureType::Point) {
for (const auto& points : feature.geometry) {
Expand Down

0 comments on commit efe604c

Please sign in to comment.