Commit d1afdb40 authored by Blackbeard (alberto flores)'s avatar Blackbeard (alberto flores) 🚢
Browse files

Return false for empty SVG

parent cda1fd56
......@@ -131,9 +131,12 @@ QList<KisVectorShapeObject> KisVectorAnimatedBrush::m_vectorObjects;
bool KisVectorAnimatedBrush::loadFromDevice(QIODevice *dev)
m_svg = dev->readAll();
// parse SVG to list of Shapes;
m_shapes = m_parasite.parseSvg(m_svg);
if (m_shapes.empty()) return false;
// set Index to 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment