remove useless or incorrect wxASSERTs
This commit is contained in:
parent
e53c3afc29
commit
873e57e63e
|
@ -515,6 +515,5 @@ void PLOTTER::ThickCircle( const wxPoint& pos, int diametre, int width, EDA_DRAW
|
||||||
|
|
||||||
void PLOTTER::SetPageSettings( const PAGE_INFO& aPageSettings )
|
void PLOTTER::SetPageSettings( const PAGE_INFO& aPageSettings )
|
||||||
{
|
{
|
||||||
wxASSERT( !outputFile );
|
|
||||||
pageInfo = aPageSettings;
|
pageInfo = aPageSettings;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,6 @@ static const double DXF_OBLIQUE_ANGLE = 15;
|
||||||
void DXF_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
void DXF_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
||||||
double aScale, bool aMirror )
|
double aScale, bool aMirror )
|
||||||
{
|
{
|
||||||
wxASSERT( !outputFile );
|
|
||||||
plotOffset = aOffset;
|
plotOffset = aOffset;
|
||||||
plotScale = aScale;
|
plotScale = aScale;
|
||||||
|
|
||||||
|
@ -278,7 +277,6 @@ bool DXF_PLOTTER::EndPlot()
|
||||||
*/
|
*/
|
||||||
void DXF_PLOTTER::SetColor( COLOR4D color )
|
void DXF_PLOTTER::SetColor( COLOR4D color )
|
||||||
{
|
{
|
||||||
wxASSERT( outputFile );
|
|
||||||
if( ( colorMode )
|
if( ( colorMode )
|
||||||
|| ( color == COLOR4D::BLACK )
|
|| ( color == COLOR4D::BLACK )
|
||||||
|| ( color == COLOR4D::WHITE ) )
|
|| ( color == COLOR4D::WHITE ) )
|
||||||
|
|
|
@ -67,7 +67,6 @@ GERBER_PLOTTER::GERBER_PLOTTER()
|
||||||
void GERBER_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
void GERBER_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
||||||
double aScale, bool aMirror )
|
double aScale, bool aMirror )
|
||||||
{
|
{
|
||||||
wxASSERT( !outputFile );
|
|
||||||
wxASSERT( aMirror == false );
|
wxASSERT( aMirror == false );
|
||||||
m_plotMirror = false;
|
m_plotMirror = false;
|
||||||
plotOffset = aOffset;
|
plotOffset = aOffset;
|
||||||
|
|
|
@ -223,7 +223,6 @@ HPGL_PLOTTER::HPGL_PLOTTER()
|
||||||
void HPGL_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
void HPGL_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
||||||
double aScale, bool aMirror )
|
double aScale, bool aMirror )
|
||||||
{
|
{
|
||||||
wxASSERT( !outputFile );
|
|
||||||
plotOffset = aOffset;
|
plotOffset = aOffset;
|
||||||
plotScale = aScale;
|
plotScale = aScale;
|
||||||
m_IUsPerDecimil = aIusPerDecimil;
|
m_IUsPerDecimil = aIusPerDecimil;
|
||||||
|
|
|
@ -63,14 +63,12 @@ bool PDF_PLOTTER::OpenFile( const wxString& aFullFilename )
|
||||||
|
|
||||||
void PDF_PLOTTER::SetPageSettings( const PAGE_INFO& aPageSettings )
|
void PDF_PLOTTER::SetPageSettings( const PAGE_INFO& aPageSettings )
|
||||||
{
|
{
|
||||||
wxASSERT( !workFile );
|
|
||||||
pageInfo = aPageSettings;
|
pageInfo = aPageSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PDF_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
void PDF_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
||||||
double aScale, bool aMirror )
|
double aScale, bool aMirror )
|
||||||
{
|
{
|
||||||
wxASSERT( !workFile );
|
|
||||||
m_plotMirror = aMirror;
|
m_plotMirror = aMirror;
|
||||||
plotOffset = aOffset;
|
plotOffset = aOffset;
|
||||||
plotScale = aScale;
|
plotScale = aScale;
|
||||||
|
@ -405,6 +403,7 @@ int PDF_PLOTTER::startPdfObject(int handle)
|
||||||
{
|
{
|
||||||
wxASSERT( outputFile );
|
wxASSERT( outputFile );
|
||||||
wxASSERT( !workFile );
|
wxASSERT( !workFile );
|
||||||
|
|
||||||
if( handle < 0)
|
if( handle < 0)
|
||||||
handle = allocPdfObject();
|
handle = allocPdfObject();
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,6 @@ SVG_PLOTTER::SVG_PLOTTER()
|
||||||
void SVG_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
void SVG_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
|
||||||
double aScale, bool aMirror )
|
double aScale, bool aMirror )
|
||||||
{
|
{
|
||||||
wxASSERT( !outputFile );
|
|
||||||
m_plotMirror = aMirror;
|
m_plotMirror = aMirror;
|
||||||
m_yaxisReversed = true; // unlike other plotters, SVG has Y axis reversed
|
m_yaxisReversed = true; // unlike other plotters, SVG has Y axis reversed
|
||||||
plotOffset = aOffset;
|
plotOffset = aOffset;
|
||||||
|
|
Loading…
Reference in New Issue