From cad640f489c7f01af6a094a4ee3e249aa4b4ff13 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Fri, 1 Nov 2002 13:14:22 +0000 Subject: [PATCH] #104645# Explicitely close path if polygon is closed --- goodies/source/filter.vcl/eps/eps.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/goodies/source/filter.vcl/eps/eps.cxx b/goodies/source/filter.vcl/eps/eps.cxx index 51d41d98e7cf..265269fcd65a 100644 --- a/goodies/source/filter.vcl/eps/eps.cxx +++ b/goodies/source/filter.vcl/eps/eps.cxx @@ -2,9 +2,9 @@ * * $RCSfile: eps.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: sj $ $Date: 2002-09-24 14:44:21 $ + * last change: $Author: thb $ $Date: 2002-11-01 14:14:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1537,7 +1537,12 @@ void PSWriter::ImplPolyLine( const Polygon & rPoly ) ImplLineTo( rPoly.GetPoint( i++ ), PS_SPACE | PS_WRAP ); } } - ImplPathDraw(); + + // #104645# explicitely close path if polygon is closed + if( rPoly[ 0 ] == rPoly[ nPointCount-1 ] ) + ImplClosePathDraw( PS_RET ); + else + ImplPathDraw(); } } }