+ if (n==0) return;
+
+ if (m_brush.GetStyle () != wxTRANSPARENT)
+ {
+ SetBrush( m_brush );
+
+ int x = points[0].x + xoffset;
+ int y = points[0].y + yoffset;
+ CalcBoundingBox( x, y );
+ gs_lgp->gnome_print_newpath( m_gpc );
+ gs_lgp->gnome_print_moveto( m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
+ int i;
+ for (i = 1; i < n; i++)
+ {
+ int x = points[i].x + xoffset;
+ int y = points[i].y + yoffset;
+ gs_lgp->gnome_print_lineto( m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
+ CalcBoundingBox( x, y );
+ }
+ gs_lgp->gnome_print_closepath( m_gpc );
+ gs_lgp->gnome_print_fill( m_gpc );
+ }
+
+ if (m_pen.GetStyle () != wxTRANSPARENT)
+ {
+ SetPen (m_pen);
+
+ int x = points[0].x + xoffset;
+ int y = points[0].y + yoffset;
+ gs_lgp->gnome_print_newpath( m_gpc );
+ gs_lgp->gnome_print_moveto( m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
+ int i;
+ for (i = 1; i < n; i++)
+ {
+ int x = points[i].x + xoffset;
+ int y = points[i].y + yoffset;
+ gs_lgp->gnome_print_lineto( m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
+ CalcBoundingBox( x, y );
+ }
+ gs_lgp->gnome_print_closepath( m_gpc );
+ gs_lgp->gnome_print_stroke( m_gpc );
+ }