PDF Plotter: avoid assert if default pen width is zero
This commit is contained in:
parent
39a2416c11
commit
c6a6c071cf
|
@ -93,7 +93,8 @@ void PDF_PLOTTER::SetCurrentLineWidth( int aWidth, void* aData )
|
||||||
return;
|
return;
|
||||||
else if( aWidth == USE_DEFAULT_LINE_WIDTH )
|
else if( aWidth == USE_DEFAULT_LINE_WIDTH )
|
||||||
aWidth = m_renderSettings->GetDefaultPenWidth();
|
aWidth = m_renderSettings->GetDefaultPenWidth();
|
||||||
else if( aWidth == 0 )
|
|
||||||
|
if( aWidth == 0 )
|
||||||
aWidth = 1;
|
aWidth = 1;
|
||||||
|
|
||||||
wxASSERT_MSG( aWidth > 0, "Plotter called to set negative pen width" );
|
wxASSERT_MSG( aWidth > 0, "Plotter called to set negative pen width" );
|
||||||
|
|
Loading…
Reference in New Issue