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
642d1f2e
Commit
642d1f2e
authored
Jul 12, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed very minor compil warnings. (no bugs)
parent
6e6910da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
base_screen.cpp
common/base_screen.cpp
+1
-0
common.cpp
common/common.cpp
+2
-1
gr_basic.cpp
common/gr_basic.cpp
+4
-0
No files found.
common/base_screen.cpp
View file @
642d1f2e
...
@@ -456,6 +456,7 @@ void BASE_SCREEN::AddGrid( const wxRealPoint& size, UserUnitType aUnit, int id )
...
@@ -456,6 +456,7 @@ void BASE_SCREEN::AddGrid( const wxRealPoint& size, UserUnitType aUnit, int id )
y
=
size
.
y
/
25.4
;
y
=
size
.
y
/
25.4
;
break
;
break
;
default
:
case
INCHES
:
case
INCHES
:
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
x
=
size
.
x
;
x
=
size
.
x
;
...
...
common/common.cpp
View file @
642d1f2e
...
@@ -367,7 +367,7 @@ wxString ReturnStringFromValue( UserUnitType aUnit, int aValue, int aInternal_Un
...
@@ -367,7 +367,7 @@ wxString ReturnStringFromValue( UserUnitType aUnit, int aValue, int aInternal_Un
case
MILLIMETRES
:
case
MILLIMETRES
:
StringValue
+=
_
(
" mm"
);
StringValue
+=
_
(
" mm"
);
break
;
break
;
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
break
;
break
;
}
}
...
@@ -506,6 +506,7 @@ int From_User_Unit( UserUnitType aUnit, double val, int internal_unit_value )
...
@@ -506,6 +506,7 @@ int From_User_Unit( UserUnitType aUnit, double val, int internal_unit_value )
value
=
val
*
internal_unit_value
;
value
=
val
*
internal_unit_value
;
break
;
break
;
default
:
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
value
=
val
;
value
=
val
;
}
}
...
...
common/gr_basic.cpp
View file @
642d1f2e
...
@@ -143,6 +143,8 @@ int GRMapY( int y )
...
@@ -143,6 +143,8 @@ int GRMapY( int y )
#define WHEN_INSIDE
#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.
* 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 )
...
@@ -373,6 +375,8 @@ static bool clipLine( EDA_Rect* aClipBox, int& x1, int& y1, int& x2, int& y2 )
return
true
;
return
true
;
}
}
#endif // if defined( USE_WX_ZOOM )
/**
/**
* Function clip_line
* 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