Don't draw shadow when printing if empty image selection.
This commit is contained in:
@@ -134,10 +134,13 @@ void LabelModelImageObject::drawShadow( QPainter* painter, bool inEditor, merge:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
painter->setBrush( shadowColor );
|
if ( mImage || inEditor )
|
||||||
painter->setPen( QPen( Qt::NoPen ) );
|
{
|
||||||
|
painter->setBrush( shadowColor );
|
||||||
|
painter->setPen( QPen( Qt::NoPen ) );
|
||||||
|
|
||||||
painter->drawRect( destRect );
|
painter->drawRect( destRect );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user