Browse Source
Centralize zoom-to-fit code.
Centralize zoom-to-fit code.
Fixes a bunch of errors: - libedit and libbrowser would zoom to bounding box but centre on canvas - libedit, libbrowser and gerbview didn’t take the scroll bars into account - pcbnew didn’t take scroll bars into account or apply the 10% margin - appending a board file would re-centre, but not re-zoom Fixes: lp:1504302 * https://bugs.launchpad.net/kicad/+bug/1504302pull/5/merge
committed by
Wayne Stambaugh
15 changed files with 107 additions and 125 deletions
-
14common/tool/common_tools.cpp
-
21common/zoom.cpp
-
46eeschema/lib_edit_frame.cpp
-
27eeschema/sch_edit_frame.cpp
-
37eeschema/viewlib_frame.cpp
-
19gerbview/gerbview_frame.cpp
-
2include/draw_frame.h
-
24pagelayout_editor/pl_editor_frame.cpp
-
2pcbnew/append_board_to_current.cpp
-
2pcbnew/files.cpp
-
15pcbnew/footprint_edit_frame.cpp
-
2pcbnew/footprint_edit_frame.h
-
2pcbnew/footprint_viewer_frame.cpp
-
2pcbnew/footprint_wizard_frame.cpp
-
17pcbnew/pcb_base_frame.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue