Commit cdf99ef2 authored by Tusooa Zhu's avatar Tusooa Zhu 🔼

Emit sigSizeChanged() when copying from another KisImage

parent ca727831
......@@ -276,8 +276,11 @@ KisImage *KisImage::clone(bool exactCopy)
void KisImage::copyFromImage(const KisImage &rhs)
{
m_d->width = rhs.width();
m_d->height = rhs.height();
if (m_d->width != rhs.width() || m_d->height != rhs.height()) {
m_d->width = rhs.width();
m_d->height = rhs.height();
emit sigSizeChanged(QPointF(), QPointF());
}
if (m_d->colorSpace != rhs.colorSpace()) {
m_d->colorSpace = rhs.colorSpace();
emit sigColorSpaceChanged(m_d->colorSpace);
......
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