[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/krita/core
From: Bart Coppens <kde () bartcoppens ! be>
Date: 2006-03-11 22:13:22
Message-ID: 1142115202.895265.22102.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 517707 by coppens:
Set the parent layer of the selection as the adjustment layer itself, that way, when \
somebody changes the selection without notifying other things (like the transform \
tool), the projection gets updated correctly
M +5 -1 kis_adjustment_layer.cc
--- trunk/koffice/krita/core/kis_adjustment_layer.cc #517706:517707
@@ -36,6 +36,7 @@
m_filterConfig = kfc;
setSelection( selection );
m_cachedPaintDev = new KisPaintDevice( img->colorSpace(), name.latin1());
+ m_selection -> setParentLayer(this);
Q_ASSERT(m_cachedPaintDev);
}
@@ -43,8 +44,10 @@
: KisLayer(rhs)
{
m_filterConfig = new KisFilterConfiguration(*rhs.m_filterConfig);
- if (rhs.m_selection)
+ if (rhs.m_selection) {
m_selection = new KisSelection( *rhs.m_selection.data() );
+ m_selection -> setParentLayer(this);
+ }
m_cachedPaintDev = new KisPaintDevice( *rhs.m_cachedPaintDev.data() );
}
@@ -96,6 +99,7 @@
gc.fillRect(image()->bounds(), KisColor(Qt::white, cs), MAX_SELECTED);
gc.end();
}
+ m_selection -> setParentLayer(this);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic