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:
committed by
jean-pierre charras
parent
c586d9735e
commit
f87577ca72
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user