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
8593838f
Commit
8593838f
authored
Feb 26, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed: cursor is not positioned properly in find function (pcbnew)
parent
663959f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
drawpanel.cpp
common/drawpanel.cpp
+2
-2
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+0
-1
No files found.
common/drawpanel.cpp
View file @
8593838f
...
@@ -361,7 +361,7 @@ void WinEDA_DrawPanel::MouseTo( const wxPoint& Mouse )
...
@@ -361,7 +361,7 @@ void WinEDA_DrawPanel::MouseTo( const wxPoint& Mouse )
/****************************************************/
/****************************************************/
/** Move the mouse cursor to the position "Mouse"
/** Move the mouse cursor to the position "Mouse"
* @param Mouse =
new mouse cursor position
* @param Mouse =
mouse cursor position, in pixels units
*/
*/
{
{
int
x
,
y
,
xPpu
,
yPpu
;
int
x
,
y
,
xPpu
,
yPpu
;
...
@@ -700,7 +700,7 @@ void WinEDA_DrawPanel::DrawBackGround( wxDC* DC )
...
@@ -700,7 +700,7 @@ void WinEDA_DrawPanel::DrawBackGround( wxDC* DC )
drawgrid
=
m_Parent
->
m_Draw_Grid
;
drawgrid
=
m_Parent
->
m_Draw_Grid
;
screen_grid_size
=
screen
->
GetGrid
();
screen_grid_size
=
screen
->
GetGrid
();
wxRealPoint
dgrid
=
screen_grid_size
;
wxRealPoint
dgrid
=
screen_grid_size
;
screen
->
Scale
(
dgrid
);
// dgrid = grid size in pixels
screen
->
Scale
(
dgrid
);
// dgrid = grid size in pixels
// if the grid size is sall ( < 5 pixels) do not display all points
// if the grid size is sall ( < 5 pixels) do not display all points
...
...
pcbnew/basepcbframe.cpp
View file @
8593838f
...
@@ -129,7 +129,6 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos )
...
@@ -129,7 +129,6 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos )
// Put cursor on item position
// Put cursor on item position
DrawPanel
->
CursorOff
(
&
dc
);
DrawPanel
->
CursorOff
(
&
dc
);
screen
->
m_Curseur
=
aPos
;
screen
->
m_Curseur
=
aPos
;
DrawPanel
->
MouseTo
(
screen
->
m_Curseur
);
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
CursorOn
(
&
dc
);
DrawPanel
->
CursorOn
(
&
dc
);
}
}
...
...
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