diff --git a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp index b8a52c58df..fd7d03db12 100644 --- a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp +++ b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp @@ -59,7 +59,7 @@ void BOARD_ADAPTER::addShape( const PCB_TEXT* aText, CONTAINER_2D_BASE* aDstCont { KIGFX::GAL_DISPLAY_OPTIONS empty_opts; KIFONT::FONT* font = aText->GetDrawFont(); - int penWidth = aText->GetEffectiveTextPenWidth() * m_biuTo3Dunits; + float penWidth = aText->GetEffectiveTextPenWidth() * m_biuTo3Dunits; CALLBACK_GAL callback_gal( empty_opts, // Stroke callback