Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Blackbeard (alberto flores)
Krita
Commits
d1afdb40
Commit
d1afdb40
authored
Aug 10, 2019
by
Blackbeard (alberto flores)
🚢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return false for empty SVG
parent
cda1fd56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
libs/brush/kis_vectoranimated_brush.cpp
libs/brush/kis_vectoranimated_brush.cpp
+3
-0
No files found.
libs/brush/kis_vectoranimated_brush.cpp
View file @
d1afdb40
...
...
@@ -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
m_parasite
.
setIndex
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment