3D viewer: fix a truncation taht created PCB_TEXTs with 0 width (not visible)

Fixes #10377
https://gitlab.com/kicad/code/kicad/issues/10377
This commit is contained in:
jean-pierre charras 2022-01-11 18:34:35 +01:00
parent 083193c3d4
commit a6c85a9204
1 changed files with 1 additions and 1 deletions

View File

@ -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