Removed unused width attribute from schematic line

This commit is contained in:
Lorenzo Marcantonio 2013-04-01 13:59:19 +02:00
parent f37812f898
commit e18404eea1
2 changed files with 2 additions and 9 deletions

View File

@ -49,7 +49,6 @@ SCH_LINE::SCH_LINE( const wxPoint& pos, int layer ) :
{
m_start = pos;
m_end = pos;
m_width = 0; // Default thickness used
m_startIsDangling = m_endIsDangling = false;
switch( layer )
@ -74,7 +73,6 @@ SCH_LINE::SCH_LINE( const SCH_LINE& aLine ) :
{
m_start = aLine.m_start;
m_end = aLine.m_end;
m_width = aLine.m_width;
m_startIsDangling = m_endIsDangling = false;
}
@ -107,7 +105,6 @@ void SCH_LINE::Show( int nestLevel, std::ostream& os ) const
{
NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str()
<< " layer=\"" << m_Layer << '"'
<< " width=\"" << m_width << '"'
<< " startIsDangling=\"" << m_startIsDangling
<< '"' << " endIsDangling=\""
<< m_endIsDangling << '"' << ">"
@ -210,14 +207,11 @@ bool SCH_LINE::Load( LINE_READER& aLine, wxString& aErrorMsg )
int SCH_LINE::GetPenSize() const
{
int pensize = ( m_width == 0 ) ? GetDefaultLineThickness() : m_width;
if( m_Layer == LAYER_BUS )
{
pensize = ( m_width == 0 ) ? GetDefaultBusThickness() : m_width;
}
return GetDefaultBusThickness();
return pensize;
return GetDefaultLineThickness();
}

View File

@ -42,7 +42,6 @@ class SCH_LINE : public SCH_ITEM
{
bool m_startIsDangling; ///< True if start point is not connected.
bool m_endIsDangling; ///< True if end point is not connected.
int m_width; ///< Set to 0 for wires and greater than 0 for busses.
wxPoint m_start; ///< Line start point
wxPoint m_end; ///< Line end point