MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / validLineWidth

Function validLineWidth

test/symbol_set_t.cpp:289–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287
288
289bool validLineWidth(const LineSymbol& symbol)
290{
291 auto border_visible = [&]() -> bool {
292 return symbol.hasBorder()
293 && (symbol.getBorder().isVisible() || symbol.getRightBorder().isVisible());
294 };
295
296 if (symbol.getColor())
297 return symbol.getLineWidth() > 0;
298 if (border_visible())
299 return symbol.getLineWidth() >= 0;
300 return symbol.getLineWidth() == 0;
301}
302
303
304void checkOsmCrtFile(const Map& target, const QDir& symbol_set_dir)

Callers 1

processSymbolSetMethod · 0.85

Calls 4

hasBorderMethod · 0.80
getLineWidthMethod · 0.80
isVisibleMethod · 0.45
getColorMethod · 0.45

Tested by

no test coverage detected