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
6113bbf6
Commit
6113bbf6
authored
Jan 14, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Brian's save grid origin patch
parent
f9af593e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
ioascii.cpp
pcbnew/ioascii.cpp
+25
-0
No files found.
pcbnew/ioascii.cpp
View file @
6113bbf6
...
...
@@ -549,6 +549,23 @@ int WinEDA_BasePcbFrame::ReadSetup( FILE* File, int* LineNum )
continue
;
}
if
(
stricmp
(
Line
,
"GridOrigin"
)
==
0
)
{
int
Ox
=
0
;
int
Oy
=
0
;
Ox
=
atoi
(
data
);
data
=
strtok
(
NULL
,
" =
\n\r
"
);
if
(
data
)
Oy
=
atoi
(
data
);
GetScreen
()
->
m_GridOrigin
.
x
=
Ox
;
GetScreen
()
->
m_GridOrigin
.
y
=
Oy
;
continue
;
}
#endif
}
...
...
@@ -687,6 +704,14 @@ static int WriteSetup( FILE* aFile, WinEDA_BasePcbFrame* aFrame, BOARD* aBoard )
"Pad2PasteClearanceRatio %g
\n
"
,
aBoard
->
GetBoardDesignSettings
()
->
m_SolderPasteMarginRatio
);
if
(
aFrame
->
GetScreen
()
->
m_GridOrigin
!=
wxPoint
(
0
,
0
)
)
{
fprintf
(
aFile
,
"GridOrigin %d %d
\n
"
,
aFrame
->
GetScreen
()
->
m_GridOrigin
.
x
,
aFrame
->
GetScreen
()
->
m_GridOrigin
.
y
);
}
fprintf
(
aFile
,
"AuxiliaryAxisOrg %d %d
\n
"
,
aFrame
->
m_Auxiliary_Axis_Position
.
x
,
...
...
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