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
44861f58
Commit
44861f58
authored
Feb 03, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tracks of 0 width causing division by 0 error.
parent
15bfac3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
class_track.cpp
pcbnew/class_track.cpp
+2
-2
No files found.
pcbnew/class_track.cpp
View file @
44861f58
...
...
@@ -763,9 +763,9 @@ void TRACK::ViewGetLayers( int aLayers[], int& aCount ) const
unsigned
int
TRACK
::
ViewGetLOD
(
int
aLayer
)
const
{
// Netnames will be shown only if zoom is appropriate
if
(
aLayer
==
GetNetnameLayer
(
GetLayer
()
)
)
if
(
aLayer
==
ITEM_GAL_LAYER
(
TRACK_NETNAMES_VISIBLE
)
)
{
return
(
20000000
/
m_Width
);
return
(
20000000
/
(
m_Width
+
1
)
);
}
// Other layers are shown without any conditions
...
...
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