SVG import: skip shapes that are not stroked and not filled.
This commit is contained in:
parent
ab1a6651a9
commit
bc846f5fca
|
@ -107,6 +107,9 @@ bool SVG_IMPORT_PLUGIN::Import()
|
|||
if( !( shape->flags & NSVG_FLAGS_VISIBLE ) )
|
||||
continue;
|
||||
|
||||
if( shape->stroke.type == NSVG_PAINT_NONE && shape->fill.type == NSVG_PAINT_NONE )
|
||||
continue;
|
||||
|
||||
double lineWidth = shape->stroke.type != NSVG_PAINT_NONE ? shape->strokeWidth : -1;
|
||||
bool filled = shape->fill.type != NSVG_PAINT_NONE && alpha( shape->fill.color ) > 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue