Don't close arcs drawn in wxPostScriptDC.
Draw arcs, not pies, in DoDrawArc(): simply remove the apparently unnecessary last lineto and closepath PostScript statements. Closes #13141. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -509,13 +509,10 @@ void wxPostScriptDCImpl::DoDrawArc (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord
|
|||||||
wxString buffer;
|
wxString buffer;
|
||||||
buffer.Printf( "newpath\n"
|
buffer.Printf( "newpath\n"
|
||||||
"%f %f %f %f %f %f ellipse\n"
|
"%f %f %f %f %f %f ellipse\n"
|
||||||
"%f %f lineto\n"
|
|
||||||
"closepath\n"
|
|
||||||
"stroke\n",
|
"stroke\n",
|
||||||
XLOG2DEV(xc), YLOG2DEV(yc),
|
XLOG2DEV(xc), YLOG2DEV(yc),
|
||||||
XLOG2DEVREL(i_radius), YLOG2DEVREL(i_radius),
|
XLOG2DEVREL(i_radius), YLOG2DEVREL(i_radius),
|
||||||
alpha1, alpha2,
|
alpha1, alpha2 );
|
||||||
XLOG2DEV(xc), YLOG2DEV(yc) );
|
|
||||||
buffer.Replace( ",", "." );
|
buffer.Replace( ",", "." );
|
||||||
PsPrint( buffer );
|
PsPrint( buffer );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user