PDF Plotter: avoid assert if default pen width is zero

This commit is contained in:
Jon Evans 2020-05-26 21:17:16 -04:00
parent 39a2416c11
commit c6a6c071cf
1 changed files with 2 additions and 1 deletions

View File

@ -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" );