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
e46c5cb7
Commit
e46c5cb7
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed toolbar buttons for zooming in GAL canvas.
parent
8059f4dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pcbnew_control.cpp
pcbnew/tools/pcbnew_control.cpp
+2
-2
No files found.
pcbnew/tools/pcbnew_control.cpp
View file @
e46c5cb7
...
...
@@ -80,9 +80,9 @@ int PCBNEW_CONTROL::ZoomInOutCenter( TOOL_EVENT& aEvent )
KIGFX
::
VIEW
*
view
=
m_frame
->
GetGalCanvas
()
->
GetView
();
double
zoomScale
=
1.0
;
if
(
aEvent
.
IsAction
(
&
COMMON_ACTIONS
::
zoomIn
)
)
if
(
aEvent
.
IsAction
(
&
COMMON_ACTIONS
::
zoomIn
Center
)
)
zoomScale
=
1.3
;
else
if
(
aEvent
.
IsAction
(
&
COMMON_ACTIONS
::
zoomOut
)
)
else
if
(
aEvent
.
IsAction
(
&
COMMON_ACTIONS
::
zoomOut
Center
)
)
zoomScale
=
0.7
;
view
->
SetScale
(
view
->
GetScale
()
*
zoomScale
);
...
...
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