diff --git a/pcbnew/drc/drc_test_provider_misc.cpp b/pcbnew/drc/drc_test_provider_misc.cpp index 0b17bfa027..79dd8f49db 100644 --- a/pcbnew/drc/drc_test_provider_misc.cpp +++ b/pcbnew/drc/drc_test_provider_misc.cpp @@ -181,7 +181,7 @@ void DRC_TEST_PROVIDER_MISC::testDisabledLayers() { std::shared_ptrdrcItem = DRC_ITEM::Create( DRCE_DISABLED_LAYER_ITEM ); - m_msg.Printf( _( "(layer %s)" ), badLayer ); + m_msg.Printf( _( "(layer %s)" ), LayerName( badLayer ) ); drcItem->SetErrorMessage( drcItem->GetErrorText() + wxS( " " ) + m_msg ); drcItem->SetItems( item );