Kaydet (Commit) 4b475f31 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Return proper transparency value even for ignore_color.

Rather unexpectedly, calling setupOutDevState() with IGNORE_COLOR
does not return a proper transparency, but null. Fixed now.
üst ac2eaaab
......@@ -1270,21 +1270,21 @@ namespace vclcanvas
p2ndOutDev->SetClipRegion( aClipRegion );
}
if( eColorType != IGNORE_COLOR )
{
Color aColor( COL_WHITE );
Color aColor( COL_WHITE );
if( renderState.DeviceColor.getLength() > 2 )
{
aColor = ::vcl::unotools::stdColorSpaceSequenceToColor(
renderState.DeviceColor );
}
if( renderState.DeviceColor.getLength() > 2 )
{
aColor = ::vcl::unotools::stdColorSpaceSequenceToColor(
renderState.DeviceColor );
}
// extract alpha, and make color opaque
// afterwards. Otherwise, OutputDevice won't draw anything
nTransparency = aColor.GetTransparency();
aColor.SetTransparency(0);
// extract alpha, and make color opaque
// afterwards. Otherwise, OutputDevice won't draw anything
nTransparency = aColor.GetTransparency();
aColor.SetTransparency(0);
if( eColorType != IGNORE_COLOR )
{
switch( eColorType )
{
case LINE_COLOR:
......
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