Commit 8ab7bbdb authored by Cyrille Berger's avatar Cyrille Berger

leave it to the colorspaces to know if the convertion is needed

svn path=/trunk/koffice/; revision=607715
parent 1651da28
......@@ -211,10 +211,5 @@ void KoColor::dump() const
void KoColor::fromKoColor(const KoColor& src)
{
if(src.colorSpace()->id() == colorSpace()->id())
{
memcpy(m_data, src.m_data, colorSpace()->pixelSize());
} else {
src.colorSpace()->convertPixelsTo(src.m_data, m_data, colorSpace(), 1);
}
src.colorSpace()->convertPixelsTo(src.m_data, m_data, colorSpace(), 1);
}
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