Commit 0ff91ca0 authored by Halla Rempt's avatar Halla Rempt
Browse files

Fix crash on loading a file layer

CCBUG:328906
parent 676c3c8e
......@@ -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() ?
......
......@@ -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();
}
......
Supports Markdown
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