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
f18fdd10
Commit
f18fdd10
authored
Jul 13, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Plain Diff
fixed issue for negative numbers starting by "-" in dialogs (read as 0)
dixed very minor compil warnings
parents
6e6910da
9e3a0424
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
base_screen.cpp
common/base_screen.cpp
+1
-0
common.cpp
common/common.cpp
+4
-2
gr_basic.cpp
common/gr_basic.cpp
+4
-0
No files found.
common/base_screen.cpp
View file @
f18fdd10
...
...
@@ -456,6 +456,7 @@ void BASE_SCREEN::AddGrid( const wxRealPoint& size, UserUnitType aUnit, int id )
y
=
size
.
y
/
25.4
;
break
;
default
:
case
INCHES
:
case
UNSCALED_UNITS
:
x
=
size
.
x
;
...
...
common/common.cpp
View file @
f18fdd10
...
...
@@ -367,7 +367,7 @@ wxString ReturnStringFromValue( UserUnitType aUnit, int aValue, int aInternal_Un
case
MILLIMETRES
:
StringValue
+=
_
(
" mm"
);
break
;
case
UNSCALED_UNITS
:
break
;
}
...
...
@@ -402,7 +402,8 @@ int ReturnValueFromString( UserUnitType aUnit, const wxString& TextValue,
while
(
brk_point
<
buf
.
Len
()
)
{
wxChar
ch
=
buf
[
brk_point
];
if
(
!
(
(
ch
>=
'0'
&&
ch
<=
'9'
)
||
(
ch
==
decimal_point
)
)
)
if
(
!
(
(
ch
>=
'0'
&&
ch
<=
'9'
)
||
(
ch
==
decimal_point
)
||
(
ch
==
'-'
)
||
(
ch
==
'+'
)
)
)
{
break
;
}
...
...
@@ -506,6 +507,7 @@ int From_User_Unit( UserUnitType aUnit, double val, int internal_unit_value )
value
=
val
*
internal_unit_value
;
break
;
default
:
case
UNSCALED_UNITS
:
value
=
val
;
}
...
...
common/gr_basic.cpp
View file @
f18fdd10
...
...
@@ -143,6 +143,8 @@ int GRMapY( int y )
#define WHEN_INSIDE
#if defined( USE_WX_ZOOM )
// currently only used if USE_WX_ZOOM is defined.
/**
* Test if any part of a line falls within the bounds of a rectangle.
*
...
...
@@ -373,6 +375,8 @@ static bool clipLine( EDA_Rect* aClipBox, int& x1, int& y1, int& x2, int& y2 )
return
true
;
}
#endif // if defined( USE_WX_ZOOM )
/**
* Function clip_line
...
...
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