Minor adjustments

This commit is contained in:
Dominik Wernberger 2020-12-20 19:50:45 +01:00 committed by Seth Hillbrand
parent ac94d72d2d
commit 07635d2fc7
21 changed files with 82 additions and 82 deletions

View File

@ -61,4 +61,4 @@ protected:
void setDefaultLayerDeps(); ///> Sets rendering targets & dependencies for layers.
};
#endif
#endif // __SCH_DRAW_PANEL_H

View File

@ -254,7 +254,7 @@ float SCH_PAINTER::getShadowWidth() const
// For best visuals the selection width must be a cross between the zoom level and the
// default line width.
return (float) fabs( matrix.GetScale().x * 2.75 ) + Mils2iu( eeconfig()->m_Selection.thickness );
return (float) std::fabs( matrix.GetScale().x * 2.75 ) + Mils2iu( eeconfig()->m_Selection.thickness );
}

View File

@ -209,4 +209,4 @@ private:
}; // namespace KIGFX
#endif
#endif // __SCH_PAINTER_H

View File

@ -475,7 +475,7 @@ bool BOARD_STACKUP::SynchronizeWithBoard( BOARD_DESIGN_SETTINGS* aSettings )
}
// Transfer other stackup settings from aSettings
BOARD_STACKUP& source_stackup = aSettings->GetStackupDescriptor();
const BOARD_STACKUP& source_stackup = aSettings->GetStackupDescriptor();
m_HasDielectricConstrains = source_stackup.m_HasDielectricConstrains;
m_EdgeConnectorConstraints = source_stackup.m_EdgeConnectorConstraints;
m_CastellatedPads = source_stackup.m_CastellatedPads;

View File

@ -684,7 +684,7 @@ public:
/**
* Checks if a given filled polygon is an insulated island
* @param aLayer is the layer to test
* @param aPolyIdx is an inndex into m_FilledPolysList[aLayer]
* @param aPolyIdx is an index into m_FilledPolysList[aLayer]
* @return true if the given polygon is insulated (i.e. has no net connection)
*/
bool IsIsland( PCB_LAYER_ID aLayer, int aPolyIdx ) const;

View File

@ -417,19 +417,19 @@ public:
bool Matches( double aDrillDia, double aPosX, double aPosY ) const;
/**
* Function GettDrillDia
* Function GetDrillDia
* returns the drill diameter in mm
*/
double GetDrillDia() const;
/**
* Function GettDrillXPos
* Function GetDrillXPos
* returns the drill's X position in mm
*/
double GetDrillXPos() const;
/**
* Function GettDrillYPos
* Function GetDrillYPos
* returns the drill's Y position in mm
*/
double GetDrillYPos() const;