Commit e5d95906 authored by Sven Langkamp's avatar Sven Langkamp

Better intialising for KoColor and KoUniColorChooser

svn path=/trunk/koffice/; revision=564623
parent 4d46cc96
......@@ -305,6 +305,8 @@ KoUniColorChooser::KoUniColorChooser(QWidget *parent, bool opacitySlider) : supe
mGrowGrid->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Expanding ), 1, 1 );
setLayout(mGrowGrid);
updateValues();
}
KoColor KoUniColorChooser::color()
......
......@@ -29,6 +29,7 @@ KoColor::KoColor()
m_colorSpace = KoColorSpaceFactoryRegistry::instance()->getColorSpace(KoID("LABA",0),"");
m_data = new quint8[m_colorSpace->pixelSize()];
memset(m_data, 0, m_colorSpace->pixelSize());
m_colorSpace->setAlpha(m_data, OPACITY_OPAQUE, 1);
}
KoColor::~KoColor()
......
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