Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Calligra
Commits
0ff91ca0
Commit
0ff91ca0
authored
Dec 18, 2013
by
Halla Rempt
Browse files
Fix crash on loading a file layer
CCBUG:328906
parent
676c3c8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
krita/plugins/extensions/dockers/specificcolorselector/specificcolorselector_dock.cc
View file @
0ff91ca0
...
...
@@ -79,6 +79,7 @@ void SpecificColorSelectorDock::unsetCanvas()
void
SpecificColorSelectorDock
::
layerChanged
(
const
KisNodeSP
node
)
{
if
(
!
node
)
return
;
if
(
!
node
->
paintDevice
())
return
;
if
(
!
m_colorSelector
)
return
;
if
(
!
m_colorSelector
->
customColorSpaceUsed
())
{
const
KoColorSpace
*
cs
=
node
->
paintDevice
()
?
...
...
krita/ui/kis_file_layer.cpp
View file @
0ff91ca0
...
...
@@ -128,8 +128,8 @@ void KisFileLayer::slotLoadingFinished()
}
else
if
(
m_scalingMethod
==
ToImageSize
)
{
importedImage
->
resizeImage
(
image
()
->
bounds
());
m_image
=
importedImage
->
projection
();
}
m_image
=
importedImage
->
projection
();
setDirty
();
}
...
...
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