Browse Source

PDF Plotter: avoid assert if default pen width is zero

pull/16/head
Jon Evans 6 years ago
parent
commit
c6a6c071cf
  1. 3
      common/plotters/PDF_plotter.cpp

3
common/plotters/PDF_plotter.cpp

@ -93,7 +93,8 @@ void PDF_PLOTTER::SetCurrentLineWidth( int aWidth, void* aData )
return;
else if( aWidth == USE_DEFAULT_LINE_WIDTH )
aWidth = m_renderSettings->GetDefaultPenWidth();
else if( aWidth == 0 )
if( aWidth == 0 )
aWidth = 1;
wxASSERT_MSG( aWidth > 0, "Plotter called to set negative pen width" );

Loading…
Cancel
Save