Fix typos in pcbnew sub-directory

Found via `codespell -q 3 -S *.po,./thirdparty,./Documentation/changelogs -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,ba,busses,dout,einstance,leaded,modul,ontext,ot,overide,serie,te,,tesselate,tesselator,tht`
This commit is contained in:
luz paz 2022-06-29 16:21:10 -04:00
parent 1598ce762b
commit af6ba1a16e
35 changed files with 45 additions and 45 deletions

View File

@ -37,7 +37,7 @@ class ARRAY_PAD_NUMBER_PROVIDER
public: public:
/** /**
* @param aFootprint the footprint to gather existing numbers from (nullptr for no footprint) * @param aFootprint the footprint to gather existing numbers from (nullptr for no footprint)
* @oaram aArrayOpts the array options that provide the candidate numbers * @param aArrayOpts the array options that provide the candidate numbers
*/ */
ARRAY_PAD_NUMBER_PROVIDER( const FOOTPRINT* aFootprint, const ARRAY_OPTIONS& aArrayOpts ); ARRAY_PAD_NUMBER_PROVIDER( const FOOTPRINT* aFootprint, const ARRAY_OPTIONS& aArrayOpts );

View File

@ -60,7 +60,7 @@ public:
/** /**
* @brief Adds an item to the container. * @brief Adds an item to the container.
* @param aMode decides whether the item is added in the beginning or at the end of the list. * @param aMode decides whether the item is added in the beginning or at the end of the list.
* @param aSkipConnectivity skip connectivity update (usefull for file loading, when * @param aSkipConnectivity skip connectivity update (useful for file loading, when
* the connectivity is updated after end of loading). * the connectivity is updated after end of loading).
*/ */
virtual void Add( BOARD_ITEM* aItem, ADD_MODE aMode = ADD_MODE::INSERT, virtual void Add( BOARD_ITEM* aItem, ADD_MODE aMode = ADD_MODE::INSERT,

View File

@ -466,7 +466,7 @@ bool BOARD_STACKUP::SynchronizeWithBoard( BOARD_DESIGN_SETTINGS* aSettings )
} }
} }
// Transfert layer settings: // Transfer layer settings:
*this = stackup; *this = stackup;
// Transfer other stackup settings from aSettings // Transfer other stackup settings from aSettings

View File

@ -243,7 +243,7 @@ bool DIALOG_COPPER_ZONE::TransferDataToWindow()
m_cornerRadius.SetValue( m_settings.GetCornerRadius() ); m_cornerRadius.SetValue( m_settings.GetCornerRadius() );
m_PriorityLevelCtrl->SetValue( m_settings.m_ZonePriority ); m_PriorityLevelCtrl->SetValue( m_settings.m_ZonePriority );
if( m_isTeardrop ) // outlines are never smoothed: they have alreay the right shape if( m_isTeardrop ) // outlines are never smoothed: they have already the right shape
{ {
m_cornerSmoothingChoice->SetSelection( 0 ); m_cornerSmoothingChoice->SetSelection( 0 );
m_cornerSmoothingChoice->Enable( false ); m_cornerSmoothingChoice->Enable( false );
@ -640,7 +640,7 @@ void DIALOG_COPPER_ZONE::OnNetSortingOptionSelected( wxCommandEvent& event )
void DIALOG_COPPER_ZONE::storePersistentNetSortConfigurations() void DIALOG_COPPER_ZONE::storePersistentNetSortConfigurations()
{ {
// These configurations are persistent across multiple invokations of // These configurations are persistent across multiple invocations of
// this dialog // this dialog
int newConfig{ NO_PERSISTENT_SORT_MODE }; int newConfig{ NO_PERSISTENT_SORT_MODE };

View File

@ -235,7 +235,7 @@ void DIALOG_MOVE_EXACT::OnClear( wxCommandEvent& event )
m_rotate.SetAngleValue( ANGLE_0 ); m_rotate.SetAngleValue( ANGLE_0 );
} }
// Keep m_stdButtonsOK focused to allow enter key actiavte the OK button // Keep m_stdButtonsOK focused to allow enter key activate the OK button
m_stdButtonsOK->SetFocus(); m_stdButtonsOK->SetFocus();
} }

View File

@ -2130,7 +2130,7 @@ void DIALOG_PAD_PROPERTIES::editPrimitive()
void DIALOG_PAD_PROPERTIES::OnPrimitiveSelection( wxListEvent& event ) void DIALOG_PAD_PROPERTIES::OnPrimitiveSelection( wxListEvent& event )
{ {
// Called on a double click on the basic shapes list // Called on a double click on the basic shapes list
// To Do: highligth the primitive(s) currently selected. // To Do: highlight the primitive(s) currently selected.
redraw(); redraw();
} }

View File

@ -94,7 +94,7 @@ bool DIALOG_TARGET_PROPERTIES::TransferDataFromWindow()
BOARD_COMMIT commit( m_Parent ); BOARD_COMMIT commit( m_Parent );
commit.Modify( m_Target ); commit.Modify( m_Target );
// Save old item in undo list, if is is not currently edited (will be later if so) // Save old item in undo list, if it's not currently edited (will be later if so)
bool pushCommit = ( m_Target->GetEditFlags() == 0 ); bool pushCommit = ( m_Target->GetEditFlags() == 0 );
if( m_Target->GetEditFlags() != 0 ) // other edit in progress (MOVE, NEW ..) if( m_Target->GetEditFlags() != 0 ) // other edit in progress (MOVE, NEW ..)

View File

@ -362,7 +362,7 @@ bool FOOTPRINT::FootprintNeedsUpdate( const FOOTPRINT* aLibFootprint )
// changed for instances on the board. Or they might want to be tested for equality. // changed for instances on the board. Or they might want to be tested for equality.
// Currently we punt and ignore all the text items. // Currently we punt and ignore all the text items.
// Drawings and pads are also somewhat problematic as there's no gaurantee that they'll be // Drawings and pads are also somewhat problematic as there's no guarantee that they'll be
// in the same order in the two footprints. Rather than building some sophisticated hashing // in the same order in the two footprints. Rather than building some sophisticated hashing
// algorithm we use the footprint sorting functions to attempt to sort them in the same order. // algorithm we use the footprint sorting functions to attempt to sort them in the same order.

View File

@ -264,7 +264,7 @@ EXPORTER_PCB_VRML::~EXPORTER_PCB_VRML()
void EXPORTER_PCB_VRML::initStaticColorList() void EXPORTER_PCB_VRML::initStaticColorList()
{ {
// Initialize the list of colors used in VRML export, but only once. // Initialize the list of colors used in VRML export, but only once.
// (The list is stati // (The list is static)
if( g_ColorsLoaded ) if( g_ColorsLoaded )
return; return;

View File

@ -191,7 +191,7 @@ bool GENDRILL_WRITER_BASE::genDrillMapFile( const wxString& aFullFileName, PLOT_
GERBER_PLOTTER* gbrplotter = static_cast <GERBER_PLOTTER*> ( plotter ); GERBER_PLOTTER* gbrplotter = static_cast <GERBER_PLOTTER*> ( plotter );
gbrplotter->DisableApertMacros( false ); gbrplotter->DisableApertMacros( false );
gbrplotter->UseX2format( true ); // Mandatory gbrplotter->UseX2format( true ); // Mandatory
gbrplotter->UseX2NetAttributes( false ); // net attributes hace no meaning here gbrplotter->UseX2NetAttributes( false ); // net attributes have no meaning here
// Attributes are added using X2 format // Attributes are added using X2 format
AddGerberX2Header( gbrplotter, m_pcb, false ); AddGerberX2Header( gbrplotter, m_pcb, false );

View File

@ -142,7 +142,7 @@ public:
void ClearAllNets(); void ClearAllNets();
/** /**
* Old footprints do not alway have a valid UUID (some can be set to null uuid) * Old footprints do not always have a valid UUID (some can be set to null uuid)
* However null UUIDs, having a special meaning in editor, create issues when * However null UUIDs, having a special meaning in editor, create issues when
* editing a footprint * editing a footprint
* So all null uuids a re replaced by a valid uuid * So all null uuids a re replaced by a valid uuid

View File

@ -481,7 +481,7 @@ void FOOTPRINT_EDIT_FRAME::AddFootprintToBoard( FOOTPRINT* aFootprint )
m_footprintNameWhenLoaded = aFootprint->GetFPID().GetLibItemName(); m_footprintNameWhenLoaded = aFootprint->GetFPID().GetLibItemName();
PCB_BASE_EDIT_FRAME::AddFootprintToBoard( aFootprint ); PCB_BASE_EDIT_FRAME::AddFootprintToBoard( aFootprint );
// Ensure item UUIDs are valide // Ensure item UUIDs are valid
// ("old" footprints can have null uuids that create issues in fp editor) // ("old" footprints can have null uuids that create issues in fp editor)
aFootprint->FixUuids(); aFootprint->FixUuids();

View File

@ -56,7 +56,7 @@ bool IBIS_MATRIX_BANDED::Check()
if( m_bandwidth < 1 ) if( m_bandwidth < 1 )
{ {
Report( _( "Bandwith of banded matrices should be >= 1." ), RPT_SEVERITY_ERROR ); Report( _( "Bandwidth of banded matrices should be >= 1." ), RPT_SEVERITY_ERROR );
status = false; status = false;
} }

View File

@ -118,7 +118,7 @@ enum class IBIS_MATRIX_TYPE
{ {
// All matrices are supposed to be symmetrical, only upper right triangle is given // All matrices are supposed to be symmetrical, only upper right triangle is given
UNDEFINED, UNDEFINED,
BANDED, // Give the main diagonal + [bandwith] elements on the right BANDED, // Give the main diagonal + [bandwidth] elements on the right
SPARSE, // Only give non-zero values. SPARSE, // Only give non-zero values.
FULL, // Give the whole upper triangle. FULL, // Give the whole upper triangle.
}; };

View File

@ -105,7 +105,7 @@ static void convertPolygon( std::list<std::unique_ptr<IMPORTED_SHAPE>>& aShapes,
double maxY = maxX; double maxY = maxX;
// as Clipper/SHAPE_POLY_SET uses ints we first need to upscale to a reasonably large size (in integer coordinates) // as Clipper/SHAPE_POLY_SET uses ints we first need to upscale to a reasonably large size (in integer coordinates)
// to avoid loosing accuracy // to avoid losing accuracy
const double convert_scale = 1000000000.0; const double convert_scale = 1000000000.0;
for( IMPORTED_POLYGON* path : aPaths ) for( IMPORTED_POLYGON* path : aPaths )

View File

@ -138,7 +138,7 @@ public:
* @param aCornerBuffer is a buffer to store the polygon. * @param aCornerBuffer is a buffer to store the polygon.
* @param aClearanceValue is the clearance around the pad. * @param aClearanceValue is the clearance around the pad.
* @param aError is the maximum deviation from a true arc. * @param aError is the maximum deviation from a true arc.
* @param aErrorLoc whether any approximation error shoule be placed inside or outside * @param aErrorLoc whether any approximation error should be placed inside or outside
* @param ignoreLineWidth is used for edge cut items where the line width is only * @param ignoreLineWidth is used for edge cut items where the line width is only
* for visualization * for visualization
*/ */

View File

@ -105,7 +105,7 @@ public:
* @param aCornerBuffer is a buffer to store the polygon. * @param aCornerBuffer is a buffer to store the polygon.
* @param aClearanceValue is the clearance around the pad. * @param aClearanceValue is the clearance around the pad.
* @param aError is the maximum deviation from a true arc. * @param aError is the maximum deviation from a true arc.
* @param aErrorLoc whether any approximation error shoule be placed inside or outside * @param aErrorLoc whether any approximation error should be placed inside or outside
* @param ignoreLineWidth is used for edge cut items where the line width is only * @param ignoreLineWidth is used for edge cut items where the line width is only
* for visualization * for visualization
*/ */

View File

@ -3759,7 +3759,7 @@ bool CADSTAR_PCB_ARCHIVE_LOADER::calculateZonePriorities( PCB_LAYER_ID& aLayer )
{ {
// Test if this zone were lower priority than other zone, what is the error? // Test if this zone were lower priority than other zone, what is the error?
double areaThis = errorArea( thisZone, otherZone ); double areaThis = errorArea( thisZone, otherZone );
// Viceversa // Vice-versa
double areaOther = errorArea( otherZone, thisZone ); double areaOther = errorArea( otherZone, thisZone );
if( areaThis > areaOther ) if( areaThis > areaOther )

View File

@ -114,7 +114,7 @@ public:
private: private:
///< Convert net code using the mapping table if available, ///< Convert net code using the mapping table if available,
///< otherwise returns unchanged net code if < 0 or if is is out of range ///< otherwise returns unchanged net code if < 0 or if it's out of range
inline int getNetCode( int aNetCode ) inline int getNetCode( int aNetCode )
{ {
if( ( aNetCode >= 0 ) && ( aNetCode < (int) m_netCodes.size() ) ) if( ( aNetCode >= 0 ) && ( aNetCode < (int) m_netCodes.size() ) )

View File

@ -132,7 +132,7 @@ class SHAPE_LINE_CHAIN;
#define CTL_OMIT_INITIAL_COMMENTS (1 << 3) ///< omit FOOTPRINT initial comments #define CTL_OMIT_INITIAL_COMMENTS (1 << 3) ///< omit FOOTPRINT initial comments
#define CTL_OMIT_PATH (1 << 4) ///< Omit component sheet time stamp (useless in library) #define CTL_OMIT_PATH (1 << 4) ///< Omit component sheet time stamp (useless in library)
#define CTL_OMIT_AT (1 << 5) ///< Omit position and rotation. (always saved #define CTL_OMIT_AT (1 << 5) ///< Omit position and rotation. (always saved
///< with potion 0,0 and rotation = 0 in library). ///< with position 0,0 and rotation = 0 in library).
//#define CTL_OMIT_HIDE (1 << 6) // found and defined in eda_text.h //#define CTL_OMIT_HIDE (1 << 6) // found and defined in eda_text.h
#define CTL_OMIT_LIBNAME (1 << 7) ///< Omit lib alias when saving (used for #define CTL_OMIT_LIBNAME (1 << 7) ///< Omit lib alias when saving (used for
///< board/not library). ///< board/not library).

View File

@ -454,7 +454,7 @@ class FootprintWizardDrawingAids:
def SetLineTickness(self, lineThickness): def SetLineTickness(self, lineThickness):
"""! """!
Old version of SetLineThickness. Old version of SetLineThickness.
Does the same thing, but is is only here for compatibility with old Does the same thing, but is only here for compatibility with old
scripts. scripts.
Set the current pen lineThickness used for subsequent drawing Set the current pen lineThickness used for subsequent drawing
operations operations

View File

@ -52,7 +52,7 @@ private:
///< Reload Python plugins and reset toolbar (if in pcbnew) ///< Reload Python plugins and reset toolbar (if in pcbnew)
int reloadPlugins( const TOOL_EVENT& aEvent ); int reloadPlugins( const TOOL_EVENT& aEvent );
///< Call LoadPlugins method of the scripting module with apropriate paths ///< Call LoadPlugins method of the scripting module with appropriate paths
///< Must be called under PyLOCK ///< Must be called under PyLOCK
static void callLoadPlugins(); static void callLoadPlugins();

View File

@ -37,7 +37,7 @@
elif type(iu) in [wxPoint,wxSize,VECTOR2I]: elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
return tuple(map(ToMM,iu)) return tuple(map(ToMM,iu))
else: else:
raise TypeError("ToMM() excpects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu))) raise TypeError("ToMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
def FromMM(mm): def FromMM(mm):
if type(mm) in [int,float]: if type(mm) in [int,float]:
@ -53,7 +53,7 @@
elif type(iu) in [wxPoint,wxSize,VECTOR2I]: elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
return tuple(map(ToMils,iu)) return tuple(map(ToMils,iu))
else: else:
raise TypeError("ToMils() excpects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu))) raise TypeError("ToMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
def FromMils(mils): def FromMils(mils):
if type(mils) in [int,float]: if type(mils) in [int,float]:
@ -61,7 +61,7 @@
elif type(mils) in [wxPoint,wxSize,VECTOR2I]: elif type(mils) in [wxPoint,wxSize,VECTOR2I]:
return tuple(map(FromMils,mils)) return tuple(map(FromMils,mils))
else: else:
raise TypeError("FromMils() excpects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mils))) raise TypeError("FromMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mils)))
def PutOnGridMM(value, gridSizeMM): def PutOnGridMM(value, gridSizeMM):
thresh = FromMM(gridSizeMM) thresh = FromMM(gridSizeMM)

View File

@ -1127,7 +1127,7 @@ class CLASS_CLASS : public ELEM_HOLDER
public: public:
/** /**
* @param aParent is the arent element of the object. * @param aParent is the parent element of the object.
* @param aType May be either T_class_class or T_region_class_class * @param aType May be either T_class_class or T_region_class_class
*/ */
CLASS_CLASS( ELEM* aParent, DSN_T aType ) : CLASS_CLASS( ELEM* aParent, DSN_T aType ) :

View File

@ -1696,7 +1696,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard )
wire->net_id = netname; wire->net_id = netname;
if( track->IsLocked() ) if( track->IsLocked() )
wire->wire_type = T_fix; // tracks with fix property are not returnned in .ses files wire->wire_type = T_fix; // tracks with fix property are not returned in .ses files
else else
wire->wire_type = T_route; // could be T_protect wire->wire_type = T_route; // could be T_protect
@ -1758,7 +1758,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard )
dsnVia->net_id = TO_UTF8( net->GetNetname() ); dsnVia->net_id = TO_UTF8( net->GetNetname() );
if( via->IsLocked() ) if( via->IsLocked() )
dsnVia->via_type = T_fix; // vias with fix property are not returnned in .ses files dsnVia->via_type = T_fix; // vias with fix property are not returned in .ses files
else else
dsnVia->via_type = T_route; // could be T_protect dsnVia->via_type = T_route; // could be T_protect
} }

View File

@ -93,7 +93,7 @@ bool PCB_EDIT_FRAME::ImportSpecctraSession( const wxString& fullFileName )
// Update footprint positions // Update footprint positions
GetCanvas()->GetView()->RecacheAllItems(); GetCanvas()->GetView()->RecacheAllItems();
// add imported tracks (previous tracks are removed, therfore all are new) // add imported tracks (previous tracks are removed, therefore all are new)
for( auto track : GetBoard()->Tracks() ) for( auto track : GetBoard()->Tracks() )
GetCanvas()->GetView()->Add( track ); GetCanvas()->GetView()->Add( track );
} }

View File

@ -77,7 +77,7 @@ ZONE* TEARDROP_MANAGER::createTeardrop( TEARDROP_VARIANT aTeardropVariant,
for( VECTOR2I pt: aPoints ) for( VECTOR2I pt: aPoints )
outline->Append(pt.x, pt.y); outline->Append(pt.x, pt.y);
// Can be usefull: // Can be useful:
teardrop->CalculateFilledArea(); teardrop->CalculateFilledArea();
return teardrop; return teardrop;
@ -335,7 +335,7 @@ int TEARDROP_MANAGER::addTeardropsOnTracks( BOARD_COMMIT* aCommitter )
for( unsigned jj = ii+1; jj < sublist->size(); jj++ ) for( unsigned jj = ii+1; jj < sublist->size(); jj++ )
{ {
// Seach candidates with thickness > curr thickness // Search candidates with thickness > curr thickness
PCB_TRACK* candidate = (*sublist)[jj]; PCB_TRACK* candidate = (*sublist)[jj];
if( min_width >= candidate->GetWidth() ) if( min_width >= candidate->GetWidth() )

View File

@ -247,7 +247,7 @@ private:
int m_tolerance; // max distance between a track end point and a pad/via center to int m_tolerance; // max distance between a track end point and a pad/via center to
// see them connected to ut a teardrop // see them connected to ut a teardrop
BOARD* m_board; BOARD* m_board;
TEARDROP_PARAMETERS_LIST* m_prmsList; // the teardrop parameters list, from the board desing settings TEARDROP_PARAMETERS_LIST* m_prmsList; // the teardrop parameters list, from the board design settings
std::vector<ZONE*> m_createdTdList; // list of new created teardrops std::vector<ZONE*> m_createdTdList; // list of new created teardrops
}; };

View File

@ -410,7 +410,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams,
: nullptr; : nullptr;
SHAPE_POLY_SET c_buffer; SHAPE_POLY_SET c_buffer;
// aHeightRatio is the factor to calculate the aViaPad teardrop prefered height // aHeightRatio is the factor to calculate the aViaPad teardrop preferred height
// teardrop height = aViaPad size * aHeightRatio (aHeightRatio <= 1.0) // teardrop height = aViaPad size * aHeightRatio (aHeightRatio <= 1.0)
// For rectangular (and similar) shapes, the preferred_height is calculated from the min // For rectangular (and similar) shapes, the preferred_height is calculated from the min
// dim of the rectangle = aViaPad.m_Width // dim of the rectangle = aViaPad.m_Width
@ -418,7 +418,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams,
int preferred_height = aViaPad.m_Width * aCurrParams->m_HeightRatio; int preferred_height = aViaPad.m_Width * aCurrParams->m_HeightRatio;
// force_clip_shape = true to force the via/pad polygon to be clipped to follow // force_clip_shape = true to force the via/pad polygon to be clipped to follow
// contraints // constraints
// Clipping is also needed for rectangular shapes, because the teardrop shape is // Clipping is also needed for rectangular shapes, because the teardrop shape is
// restricted to a polygonal area smaller than the pad area (the teardrop height // restricted to a polygonal area smaller than the pad area (the teardrop height
// use the smaller value of X and Y sizes). // use the smaller value of X and Y sizes).
@ -543,7 +543,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams,
} }
} }
if( found_start < 0 ) // PointE was not initalized, because start point does not exit if( found_start < 0 ) // PointE was not initialized, because start point does not exit
{ {
int ii = found_end-1; int ii = found_end-1;
@ -553,7 +553,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams,
PointE = hull[ii]; PointE = hull[ii];
} }
if( found_end < 0 ) // PointC was not initalized, because end point does not exit if( found_end < 0 ) // PointC was not initialized, because end point does not exit
{ {
int ii = found_start-1; int ii = found_start-1;
@ -692,7 +692,7 @@ bool TEARDROP_MANAGER::computeTeardropPolygonPoints( TEARDROP_PARAMETERS* aCurrP
int track_stub_len; // the dist between the start point and the anchor point int track_stub_len; // the dist between the start point and the anchor point
// on the track // on the track
// Note: aTrack can be modified if the inital track is too short // Note: aTrack can be modified if the initial track is too short
if( !findAnchorPointsOnTrack( aCurrParams, start, end, aTrack, aViaPad, &track_stub_len, if( !findAnchorPointsOnTrack( aCurrParams, start, end, aTrack, aViaPad, &track_stub_len,
aFollowTracks, aTrackLookupList ) ) aFollowTracks, aTrackLookupList ) )
return false; return false;

View File

@ -101,7 +101,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar()
UpdateZoomSelectBox(); UpdateZoomSelectBox();
m_mainToolBar->AddControl( m_zoomSelectBox ); m_mainToolBar->AddControl( m_zoomSelectBox );
// Option to run Zoom automatique on footprint selection changge // Option to run Zoom automatique on footprint selection change
m_mainToolBar->AddTool( ID_FPVIEWER_AUTOZOOM_TOOL, wxEmptyString, m_mainToolBar->AddTool( ID_FPVIEWER_AUTOZOOM_TOOL, wxEmptyString,
KiScaledBitmap( BITMAPS::zoom_auto_fit_in_page, this ), KiScaledBitmap( BITMAPS::zoom_auto_fit_in_page, this ),
_( "Automatic Zoom on footprint change" ), _( "Automatic Zoom on footprint change" ),

View File

@ -195,7 +195,7 @@ public:
int SetAnchor( const TOOL_EVENT& aEvent ); int SetAnchor( const TOOL_EVENT& aEvent );
/** /**
* Toggle the horizontal/veritcal/45-degree constraint for drawing tools. * Toggle the horizontal/vertical/45-degree constraint for drawing tools.
*/ */
int ToggleHV45Mode( const TOOL_EVENT& toolEvent ); int ToggleHV45Mode( const TOOL_EVENT& toolEvent );

View File

@ -1845,7 +1845,7 @@ void PCB_SELECTION_TOOL::FindItem( BOARD_ITEM* aItem )
m_frame->FocusOnLocation( aItem->GetPosition() ); m_frame->FocusOnLocation( aItem->GetPosition() );
} }
// If the item has a bouding box, then zoom out if needed // If the item has a bounding box, then zoom out if needed
if( aItem->GetBoundingBox().GetHeight() > 0 && aItem->GetBoundingBox().GetWidth() > 0 ) if( aItem->GetBoundingBox().GetHeight() > 0 && aItem->GetBoundingBox().GetWidth() > 0 )
{ {
// This adds some margin // This adds some margin
@ -1876,7 +1876,7 @@ void PCB_SELECTION_TOOL::FindItem( BOARD_ITEM* aItem )
{ {
pcbView->SetScale( pcbView->GetScale() * ( scale ) ); pcbView->SetScale( pcbView->GetScale() * ( scale ) );
//Let's refocus because there is an algortihm to avoid dialogs in there. //Let's refocus because there is an algorithm to avoid dialogs in there.
m_frame->FocusOnLocation( aItem->GetCenter() ); m_frame->FocusOnLocation( aItem->GetCenter() );
} }
} }

View File

@ -659,7 +659,7 @@ bool TRACKS_CLEANER::mergeCollinearSegments( PCB_TRACK* aSeg1, PCB_TRACK* aSeg2
// If the existing connected points are not the same as the points generated by our // If the existing connected points are not the same as the points generated by our
// min/max alg, then assign the missing points to the end closest. This ensures that // min/max alg, then assign the missing points to the end closest. This ensures that
// our replacment track is still connected // our replacement track is still connected
for( auto pt : pts ) for( auto pt : pts )
{ {
if( !dummy_seg.IsPointOnEnds( wxPoint( pt.x, pt.y ) ) ) if( !dummy_seg.IsPointOnEnds( wxPoint( pt.x, pt.y ) ) )

View File

@ -748,7 +748,7 @@ bool ZONE::AppendCorner( VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplicatio
// If aHoleIdx >= 0, the corner musty be added to the hole, index aHoleIdx. // If aHoleIdx >= 0, the corner musty be added to the hole, index aHoleIdx.
// (remember: the index of the first hole is 0) // (remember: the index of the first hole is 0)
// Return error if if does dot exist. // Return error if it does not exist.
if( aHoleIdx >= m_Poly->HoleCount( 0 ) ) if( aHoleIdx >= m_Poly->HoleCount( 0 ) )
return false; return false;

View File

@ -839,7 +839,7 @@ protected:
bool m_isRuleArea; bool m_isRuleArea;
/* A zone outline can be a teardrop zone with different rules for priority /* A zone outline can be a teardrop zone with different rules for priority
* (alway bigger priority than copper zones) and never removed from a * (always bigger priority than copper zones) and never removed from a
* copper zone having the same netcode * copper zone having the same netcode
*/ */
TEARDROP_TYPE m_teardropType; TEARDROP_TYPE m_teardropType;