Resolves: rhbz#115937 virtual device leak
windows runs out much sooner than the other platforms Change-Id: I8ffbe32babf8854580150edfe741b03fd43e4326 Reviewed-on: https://gerrit.libreoffice.org/59404 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -546,7 +546,7 @@ void DrawAlphaBitmapAndAlphaGradient(BitmapEx & rBitmapEx, bool bFixedTransparen
|
||||
|
||||
void DrawAndClipBitmap(const Point& rPos, const Size& rSize, const BitmapEx& rBitmap, BitmapEx & aBmpEx, basegfx::B2DPolyPolygon const & rClipPath)
|
||||
{
|
||||
VclPtrInstance< VirtualDevice > pVDev;
|
||||
ScopedVclPtrInstance< VirtualDevice > pVDev;
|
||||
MapMode aMapMode( MapUnit::Map100thMM );
|
||||
aMapMode.SetOrigin( Point( -rPos.X(), -rPos.Y() ) );
|
||||
const Size aOutputSizePixel( pVDev->LogicToPixel( rSize, aMapMode ) );
|
||||
|
Reference in New Issue
Block a user