Commit df5a97ef authored by Agata Cacko's avatar Agata Cacko

Fix drag'n'drop of Fill layers between opened files

Before this commit, that would result in crash if you drop
the layer or the group with the layer on the canvas of another file
(in the subwindows mode). This commit contains a fix so now it works
as expected.

parent d0fda716
......@@ -113,6 +113,7 @@ void KisSelectionBasedLayer::slotImageSizeChanged()
void KisSelectionBasedLayer::setImage(KisImageWSP image)
m_d->paintDevice->setDefaultBounds(KisDefaultBoundsSP(new KisDefaultBounds(image)));
m_d->selection->pixelSelection()->setDefaultBounds(KisDefaultBoundsSP(new KisDefaultBounds(image)));
connect(, SIGNAL(sigSizeChanged(QPointF,QPointF)), SLOT(slotImageSizeChanged()));
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