SVG import: skip shapes that are not stroked and not filled.
(cherry picked from commit bc846f5fca
)
This commit is contained in:
parent
5f025dcd73
commit
19753719cb
|
@ -84,6 +84,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