Kaydet (Commit) a8b72c8a authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

Always check IsVirtual() in SwFntObj::DrawText

I tried to use the new OUTDEV_PDF in replacement for the PDF
export check. It survived Jenkins and local builds, but sometimes
a tinderbox breaks, so check IsVirtual() instead.

Change-Id: I64fe7c145dc3b87345f6a967f6b2997f3c7e38c2
Reviewed-on: https://gerrit.libreoffice.org/62366
Tested-by: Jenkins
Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
üst e194f597
......@@ -880,7 +880,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
OSL_FAIL( "Outdev Check failed" );
}
}
else if ( OUTDEV_PDF == rInf.GetOut().GetOutDevType() && ! pWin )
else if ( rInf.GetOut().IsVirtual() && ! pWin )
{
// PDF export
if ( OUTDEV_PRINTER == rRefDev.GetOutDevType() )
......@@ -897,7 +897,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
}
}
else if ( OUTDEV_WINDOW == rInf.GetOut().GetOutDevType() ||
( OUTDEV_VIRDEV == rInf.GetOut().GetOutDevType() && pWin ) )
( rInf.GetOut().IsVirtual() && pWin ) )
{
// Window or virtual window
if ( OUTDEV_PRINTER == rRefDev.GetOutDevType() )
......
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