diff --git a/3d-viewer/3d_canvas/create_layer_items.cpp b/3d-viewer/3d_canvas/create_layer_items.cpp index c798d0d198..1f6e5cd8e7 100644 --- a/3d-viewer/3d_canvas/create_layer_items.cpp +++ b/3d-viewer/3d_canvas/create_layer_items.cpp @@ -671,6 +671,9 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter ) addShape( static_cast( item ), layerContainer, item ); break; + case PCB_REFERENCE_IMAGE_T: // ignore + break; + default: wxLogTrace( m_logTrace, wxT( "createLayers: item type: %d not implemented" ), item->Type() ); break; @@ -696,7 +699,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter ) PCB_TEXT* text = static_cast( item ); text->TransformTextToPolySet( *copperPolys, 0, maxError, ERROR_INSIDE ); } - else + else if( item->Type() != PCB_REFERENCE_IMAGE_T ) { item->TransformShapeToPolygon( *copperPolys, layer, 0, maxError, ERROR_INSIDE ); } @@ -770,6 +773,9 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter ) break; } + case PCB_REFERENCE_IMAGE_T: // ignore + break; + default: wxLogTrace( m_logTrace, wxT( "createLayers: item type: %d not implemented" ), item->Type() ); break; diff --git a/pcbnew/board_item.cpp b/pcbnew/board_item.cpp index 3bc4910002..85907420d4 100644 --- a/pcbnew/board_item.cpp +++ b/pcbnew/board_item.cpp @@ -263,7 +263,7 @@ void BOARD_ITEM::TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, PCB_LAYER_ID int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth ) const { - wxASSERT_MSG( false, wxT( "Called TransformShapeToPolygon() on unsupported BOARD_ITEM." ) ); + wxFAIL_MSG( wxString::Format( wxT( "%s doesn't implement TransformShapeToPolygon()" ), GetClass() ) ); };