Fix a bug in KIGFX::COLOR4D ctor: . The alpha channel (opacity) was set to 0. this is a mistake. It is now set to 1.0
Fixes lp:1718389
This commit is contained in:
parent
b6d54acf3b
commit
5aeb6129ca
|
@ -209,7 +209,7 @@ void COLOR4D_PICKER_DLG::createRGBBitmap()
|
|||
double inc = 1.0 / half_size;
|
||||
#define SLOPE_AXIS 50.0
|
||||
double slope = SLOPE_AXIS/half_size;
|
||||
color.g = 0;
|
||||
color.g = 0.0;
|
||||
|
||||
for( int xx = 0; xx < half_size; xx++ ) // blue axis
|
||||
{
|
||||
|
@ -226,7 +226,7 @@ void COLOR4D_PICKER_DLG::createRGBBitmap()
|
|||
}
|
||||
|
||||
// Red green area in y Z 3d axis
|
||||
color.b = 0;
|
||||
color.b = 0.0;
|
||||
for( int xx = 0; xx < half_size; xx++ ) // green axis
|
||||
{
|
||||
color.g = inc * xx;
|
||||
|
@ -242,7 +242,7 @@ void COLOR4D_PICKER_DLG::createRGBBitmap()
|
|||
}
|
||||
|
||||
// Blue green area in x y 3d axis
|
||||
color.r = 0;
|
||||
color.r = 0.0;
|
||||
for( int xx = 0; xx < half_size; xx++ ) // green axis
|
||||
{
|
||||
color.g = inc * xx;
|
||||
|
|
|
@ -41,7 +41,7 @@ class COLOR4D
|
|||
public:
|
||||
// Constructor (creates the Color 0,0,0,0)
|
||||
COLOR4D() :
|
||||
r( 0 ), g( 0 ), b( 0 ), a( 0 )
|
||||
r( 0 ), g( 0 ), b( 0 ), a( 1.0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue