| 287 | |
| 288 | |
| 289 | bool 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 | |
| 304 | void checkOsmCrtFile(const Map& target, const QDir& symbol_set_dir) |
no test coverage detected