class PLOTTER: dash lines parameters in one place for plot. I made minor changes (values in mm and set to give the same size as dashed lines drawn by wxDC, using short dash.)

This commit is contained in:
unknown
2015-03-10 21:00:50 +01:00
committed by jean-pierre charras
parent c586d9735e
commit f87577ca72
5 changed files with 31 additions and 16 deletions
+3 -2
View File
@@ -228,7 +228,7 @@ void PSLIKE_PLOTTER::FlashPadTrapez( const wxPoint& aPadPos, const wxPoint *aCor
/**
* Write on a stream a string escaped for postscript/PDF
* Write on a stream a string escaped for postscript/PDF
*/
void PSLIKE_PLOTTER::fputsPostscriptString(FILE *fout, const wxString& txt)
{
@@ -469,7 +469,8 @@ void PS_PLOTTER::SetDash( bool dashed )
{
wxASSERT( outputFile );
if( dashed )
fputs( "dashedline\n", outputFile );
fprintf( outputFile, "[%d %d] 0 setdash\n",
(int) GetDashMarkLenIU(), (int) GetDashGapLenIU() );
else
fputs( "solidline\n", outputFile );
}