Commit 3f75c0cf authored by Boudewijn Rempt's avatar Boudewijn Rempt

Check the image size, not the projection size when importing a layer

For some reason, some people want to import empty images as layers...
That should be possible, I guess, for reasons to do with image
structure. So check whether the image has valid bounds, not the
image projection, since that means the import has succeeded.

parent 46860d97
......@@ -101,7 +101,7 @@ void KisImportCatcher::slotLoadingFinished()
KisImageWSP importedImage = m_d->doc->image();
if (importedImage && importedImage->projection()->exactBounds().isValid()) {
if (importedImage && importedImage->bounds().isValid()) {
if (m_d->layerType == "KisPaintLayer") {
KisPaintDeviceSP dev = importedImage->projection();
adaptClipToImageColorSpace(dev, m_d->view->image());
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