Commit e18404ee authored by Lorenzo Marcantonio's avatar Lorenzo Marcantonio

Removed unused width attribute from schematic line

parent f37812f8
......@@ -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();
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment