diff options
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl2.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index 84e0ed4443ba..8afd8b70cdc0 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -628,9 +628,9 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa for(sal_uInt16 a(0); a + 1 < nPoints; a++) { if(bCurve - && POLY_NORMAL != aPath.GetFlags(a + 1) + && PolyFlags::Normal != aPath.GetFlags(a + 1) && a + 2 < nPoints - && POLY_NORMAL != aPath.GetFlags(a + 2) + && PolyFlags::Normal != aPath.GetFlags(a + 2) && a + 3 < nPoints) { const tools::Polygon aSnippet(4, |