Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
e18404ee
Commit
e18404ee
authored
Apr 01, 2013
by
Lorenzo Marcantonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused width attribute from schematic line
parent
f37812f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
sch_line.cpp
eeschema/sch_line.cpp
+2
-8
sch_line.h
eeschema/sch_line.h
+0
-1
No files found.
eeschema/sch_line.cpp
View file @
e18404ee
...
@@ -49,7 +49,6 @@ SCH_LINE::SCH_LINE( const wxPoint& pos, int layer ) :
...
@@ -49,7 +49,6 @@ SCH_LINE::SCH_LINE( const wxPoint& pos, int layer ) :
{
{
m_start
=
pos
;
m_start
=
pos
;
m_end
=
pos
;
m_end
=
pos
;
m_width
=
0
;
// Default thickness used
m_startIsDangling
=
m_endIsDangling
=
false
;
m_startIsDangling
=
m_endIsDangling
=
false
;
switch
(
layer
)
switch
(
layer
)
...
@@ -74,7 +73,6 @@ SCH_LINE::SCH_LINE( const SCH_LINE& aLine ) :
...
@@ -74,7 +73,6 @@ SCH_LINE::SCH_LINE( const SCH_LINE& aLine ) :
{
{
m_start
=
aLine
.
m_start
;
m_start
=
aLine
.
m_start
;
m_end
=
aLine
.
m_end
;
m_end
=
aLine
.
m_end
;
m_width
=
aLine
.
m_width
;
m_startIsDangling
=
m_endIsDangling
=
false
;
m_startIsDangling
=
m_endIsDangling
=
false
;
}
}
...
@@ -107,7 +105,6 @@ void SCH_LINE::Show( int nestLevel, std::ostream& os ) const
...
@@ -107,7 +105,6 @@ void SCH_LINE::Show( int nestLevel, std::ostream& os ) const
{
{
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" layer=
\"
"
<<
m_Layer
<<
'"'
<<
" layer=
\"
"
<<
m_Layer
<<
'"'
<<
" width=
\"
"
<<
m_width
<<
'"'
<<
" startIsDangling=
\"
"
<<
m_startIsDangling
<<
" startIsDangling=
\"
"
<<
m_startIsDangling
<<
'"'
<<
" endIsDangling=
\"
"
<<
'"'
<<
" endIsDangling=
\"
"
<<
m_endIsDangling
<<
'"'
<<
">"
<<
m_endIsDangling
<<
'"'
<<
">"
...
@@ -210,14 +207,11 @@ bool SCH_LINE::Load( LINE_READER& aLine, wxString& aErrorMsg )
...
@@ -210,14 +207,11 @@ bool SCH_LINE::Load( LINE_READER& aLine, wxString& aErrorMsg )
int
SCH_LINE
::
GetPenSize
()
const
int
SCH_LINE
::
GetPenSize
()
const
{
{
int
pensize
=
(
m_width
==
0
)
?
GetDefaultLineThickness
()
:
m_width
;
if
(
m_Layer
==
LAYER_BUS
)
if
(
m_Layer
==
LAYER_BUS
)
{
return
GetDefaultBusThickness
();
pensize
=
(
m_width
==
0
)
?
GetDefaultBusThickness
()
:
m_width
;
}
return
pensize
;
return
GetDefaultLineThickness
()
;
}
}
...
...
eeschema/sch_line.h
View file @
e18404ee
...
@@ -42,7 +42,6 @@ class SCH_LINE : public SCH_ITEM
...
@@ -42,7 +42,6 @@ class SCH_LINE : public SCH_ITEM
{
{
bool
m_startIsDangling
;
///< True if start point is not connected.
bool
m_startIsDangling
;
///< True if start point is not connected.
bool
m_endIsDangling
;
///< True if end 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_start
;
///< Line start point
wxPoint
m_end
;
///< Line end point
wxPoint
m_end
;
///< Line end point
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment