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
a3f0e450
Commit
a3f0e450
authored
Nov 05, 2013
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema: fix bug loading grid size from previous session. (fixes lp:1239445)
parent
bae5780d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
libeditframe.cpp
eeschema/libeditframe.cpp
+3
-2
schframe.cpp
eeschema/schframe.cpp
+3
-2
No files found.
eeschema/libeditframe.cpp
View file @
a3f0e450
...
@@ -221,12 +221,13 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( SCH_EDIT_FRAME* aParent,
...
@@ -221,12 +221,13 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( SCH_EDIT_FRAME* aParent,
SetCrossHairPosition
(
wxPoint
(
0
,
0
)
);
SetCrossHairPosition
(
wxPoint
(
0
,
0
)
);
// Initialize grid id to the default value 50 mils:
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_50
-
ID_POPUP_GRID_LEVEL_1000
;
LoadSettings
();
LoadSettings
();
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
// Initialize grid id to the default value 50 mils:
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_50
-
ID_POPUP_GRID_LEVEL_1000
;
GetScreen
()
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
GetScreen
()
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
if
(
m_canvas
)
if
(
m_canvas
)
...
...
eeschema/schframe.cpp
View file @
a3f0e450
...
@@ -208,11 +208,12 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( wxWindow* aParent, const wxString& aTitle,
...
@@ -208,11 +208,12 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( wxWindow* aParent, const wxString& aTitle,
icon
.
CopyFromBitmap
(
KiBitmap
(
icon_eeschema_xpm
)
);
icon
.
CopyFromBitmap
(
KiBitmap
(
icon_eeschema_xpm
)
);
SetIcon
(
icon
);
SetIcon
(
icon
);
// Initialize grid id to the default value (50 mils):
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_50
-
ID_POPUP_GRID_LEVEL_1000
;
/* Get config */
/* Get config */
LoadSettings
();
LoadSettings
();
// Initialize grid id to the default value (50 mils):
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_50
-
ID_POPUP_GRID_LEVEL_1000
;
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
if
(
m_canvas
)
if
(
m_canvas
)
...
...
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