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
bbc626b7
Commit
bbc626b7
authored
Dec 15, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin testing has started
parent
a9e23996
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+12
-7
kicad_plugin.h
pcbnew/kicad_plugin.h
+1
-1
No files found.
pcbnew/kicad_plugin.cpp
View file @
bbc626b7
...
...
@@ -1737,13 +1737,18 @@ void KICAD_PLUGIN::loadPCB_TEXT()
GRTextHorizJustifyType
hj
;
switch
(
*
hJustify
)
if
(
hJustify
)
{
default
:
case
'C'
:
hj
=
GR_TEXT_HJUSTIFY_CENTER
;
break
;
case
'L'
:
hj
=
GR_TEXT_HJUSTIFY_LEFT
;
break
;
case
'R'
:
hj
=
GR_TEXT_HJUSTIFY_RIGHT
;
break
;
switch
(
*
hJustify
)
{
default
:
case
'C'
:
hj
=
GR_TEXT_HJUSTIFY_CENTER
;
break
;
case
'L'
:
hj
=
GR_TEXT_HJUSTIFY_LEFT
;
break
;
case
'R'
:
hj
=
GR_TEXT_HJUSTIFY_RIGHT
;
break
;
}
}
else
hj
=
GR_TEXT_HJUSTIFY_CENTER
;
pcbtxt
->
SetHorizJustify
(
hj
);
...
...
@@ -2204,7 +2209,7 @@ void KICAD_PLUGIN::loadDIMENSION()
const
char
*
data
;
char
*
line
=
m_reader
->
Line
();
if
(
TESTLINE
(
"$
EndDIMENS
ION"
)
)
if
(
TESTLINE
(
"$
endCOTAT
ION"
)
)
{
m_board
->
Add
(
dim
.
release
(),
ADD_APPEND
);
return
;
// preferred exit
...
...
@@ -2387,7 +2392,7 @@ void KICAD_PLUGIN::loadDIMENSION()
}
}
THROW_IO_ERROR
(
"Missing '$
EndDIMENS
ION'"
);
THROW_IO_ERROR
(
"Missing '$
endCOTAT
ION'"
);
}
...
...
pcbnew/kicad_plugin.h
View file @
bbc626b7
...
...
@@ -104,7 +104,7 @@ protected:
/**
* Function degParse
* parses an ASCII decimal floating point value which is certainy an angle. This
* parses an ASCII decimal floating point value which is certain
l
y an angle. This
* is a dedicated function for encapsulating support for the migration from
* tenths of degrees to degrees in floating point. This function is the complement of
* fmtDEG(). One has to know what the other is doing.
...
...
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