summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/notxtfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/notxtfrm.cxx')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 9b84ca53b1e1..308f8714ca3b 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -1108,8 +1108,7 @@ void SwNoTextFrame::PaintPicture( vcl::RenderContext* pOut, const SwRect &rGrfAr
pVout = pOut;
pOut = pShell->GetOut();
}
- else if( pShell->GetWin() &&
- OUTDEV_VIRDEV == pOut->GetOutDevType() )
+ else if( pShell->GetWin() && pOut->IsVirtual() )
{
pVout = pOut;
pOut = pShell->GetWin();
@@ -1117,7 +1116,7 @@ void SwNoTextFrame::PaintPicture( vcl::RenderContext* pOut, const SwRect &rGrfAr
else
pVout = nullptr;
- OSL_ENSURE( OUTDEV_VIRDEV != pOut->GetOutDevType() ||
+ OSL_ENSURE( !pOut->IsVirtual() ||
pShell->GetViewOptions()->IsPDFExport() || pShell->isOutputToWindow(),
"pOut should not be a virtual device" );