~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to pcbnew/gpcb_plugin.cpp

More int casts to rounding conversions

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
    int tsize = ( parseInt( parameters[paramCnt-3] ) * TEXT_DEFAULT_SIZE ) / 100;
409
409
    int thickness = module->Reference().GetSize().x / 6;
410
410
 
411
 
    tsize = std::max( (int)(5 * IU_PER_MILS), tsize );     // Ensure a minimal size = 5 mils
 
411
    tsize = std::max( KiROUND(5 * IU_PER_MILS), tsize ); // Ensure a minimal size = 5 mils
412
412
    module->Reference().SetSize( wxSize( tsize, tsize ) );
413
413
    module->Reference().SetThickness( thickness );
414
414
    module->Value().SetOrientation( module->Reference().GetOrientation() );