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
a7b916d6
Commit
a7b916d6
authored
Oct 28, 2014
by
unknown
Committed by
jean-pierre charras
Oct 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema: Fix Bug #983251 (Eeschema mouse hit testing error on non horizontal or vertical wires)
parent
86b39ca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
sch_line.cpp
eeschema/sch_line.cpp
+5
-4
No files found.
eeschema/sch_line.cpp
View file @
a7b916d6
...
...
@@ -571,17 +571,18 @@ bool SCH_LINE::HitTest( const wxPoint& aPosition, int aAccuracy ) const
bool
SCH_LINE
::
HitTest
(
const
EDA_RECT
&
aRect
,
bool
aContained
,
int
aAccuracy
)
const
{
if
(
m_Flags
&
STRUCT_DELETED
||
m_Flags
&
SKIP_STRUCT
)
if
(
m_Flags
&
(
STRUCT_DELETED
|
SKIP_STRUCT
)
)
return
false
;
EDA_RECT
rect
=
aRect
;
rect
.
Inflate
(
aAccuracy
);
if
(
aAccuracy
)
rect
.
Inflate
(
aAccuracy
);
if
(
aContained
)
return
rect
.
Contains
(
GetBoundingBox
()
);
return
rect
.
Contains
(
m_start
)
&&
rect
.
Contains
(
m_end
);
return
rect
.
Intersects
(
GetBoundingBox
()
);
return
rect
.
Intersects
(
m_start
,
m_end
);
}
...
...
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