Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Blackbeard (alberto flores)
Krita
Commits
4d3fbd9b
Commit
4d3fbd9b
authored
Jul 18, 2019
by
Blackbeard (alberto flores)
🚢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the segmentation fault
parent
065ac9ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
libs/brush/kis_vectoranimated_brush.cpp
libs/brush/kis_vectoranimated_brush.cpp
+2
-9
libs/brush/kis_vectorbrush_parasite.cpp
libs/brush/kis_vectorbrush_parasite.cpp
+2
-0
No files found.
libs/brush/kis_vectoranimated_brush.cpp
View file @
4d3fbd9b
...
...
@@ -148,15 +148,8 @@ void KisVectorAnimatedBrush::newbrushTip()
setBrushTipImage
(
image
);
setValid
(
true
);
// Well for now, always true
if
(
brushTipImage
().
isGrayscale
())
{
setBrushType
(
MASK
);
setHasColor
(
false
);
}
else
{
setBrushType
(
IMAGE
);
setHasColor
(
true
);
}
setBrushType
(
MASK
);
setHasColor
(
false
);
setWidth
(
brushTipImage
().
width
());
setHeight
(
brushTipImage
().
height
());
...
...
libs/brush/kis_vectorbrush_parasite.cpp
View file @
4d3fbd9b
...
...
@@ -35,6 +35,8 @@ void KisVectorBrushParasite::parseSvg(QByteArray svg)
{
m_shapes
=
svgToKoShapes
(
svg
);
m_maxIndex
=
m_shapes
.
size
();
//minus one because count starts from zero
m_maxIndex
--
;
}
...
...
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