Commit 7157b894 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Better fix, but I still get an alarm clock when closing Krita; will have to do

some valgrinding tonight.

svn path=/trunk/koffice/; revision=451927
parent f294fdfb
......@@ -26,6 +26,7 @@
#include "kis_factory.h"
#include "kis_types.h"
#include "kis_xyz_colorspace.h"
#include "kis_alpha_colorspace.h"
#include "kis_colorspace_registry.h"
#include "kis_pixel_op.h"
......@@ -48,6 +49,7 @@ KisColorSpaceRegistry* KisColorSpaceRegistry::instance()
KisColorSpaceRegistry::m_singleton = new KisColorSpaceRegistry();
Q_CHECK_PTR(KisColorSpaceRegistry::m_singleton);
m_singleton->add(new KisXyzColorSpace());
m_singleton->add(new KisAlphaColorSpace());
m_singleton->resetProfiles();
}
return KisColorSpaceRegistry::m_singleton;
......
......@@ -35,7 +35,7 @@
KisSelection::KisSelection(KisPaintDeviceSP layer, const QString& name)
: super(
layer -> image(),
new KisAlphaColorSpace(),
KisColorSpaceRegistry::instance()->get("ALPHA"),
name)
{
m_parentLayer = layer;
......
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