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
c2bd2491
Commit
c2bd2491
authored
Feb 19, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added asserts in spots where DEGREES are not handled.
parent
84517d0e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
0 deletions
+36
-0
common.cpp
common/common.cpp
+12
-0
sch_base_frame.cpp
eeschema/sch_base_frame.cpp
+4
-0
gerbview_frame.cpp
gerbview/gerbview_frame.cpp
+8
-0
pl_editor_frame.cpp
pagelayout_editor/pl_editor_frame.cpp
+4
-0
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+8
-0
No files found.
common/common.cpp
View file @
c2bd2491
...
@@ -146,6 +146,10 @@ wxString ReturnUnitSymbol( EDA_UNITS_T aUnit, const wxString& formatString )
...
@@ -146,6 +146,10 @@ wxString ReturnUnitSymbol( EDA_UNITS_T aUnit, const wxString& formatString )
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
if
(
formatString
.
IsEmpty
()
)
if
(
formatString
.
IsEmpty
()
)
...
@@ -174,6 +178,10 @@ wxString GetUnitsLabel( EDA_UNITS_T aUnit )
...
@@ -174,6 +178,10 @@ wxString GetUnitsLabel( EDA_UNITS_T aUnit )
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
label
=
_
(
"units"
);
label
=
_
(
"units"
);
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
return
label
;
return
label
;
...
@@ -196,6 +204,10 @@ wxString GetAbbreviatedUnitsLabel( EDA_UNITS_T aUnit )
...
@@ -196,6 +204,10 @@ wxString GetAbbreviatedUnitsLabel( EDA_UNITS_T aUnit )
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
return
label
;
return
label
;
...
...
eeschema/sch_base_frame.cpp
View file @
c2bd2491
...
@@ -160,6 +160,10 @@ void SCH_BASE_FRAME::UpdateStatusBar()
...
@@ -160,6 +160,10 @@ void SCH_BASE_FRAME::UpdateStatusBar()
absformatter
=
wxT
(
"X %f Y %f"
);
absformatter
=
wxT
(
"X %f Y %f"
);
locformatter
=
wxT
(
"dx %f dy %f d %f"
);
locformatter
=
wxT
(
"dx %f dy %f d %f"
);
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
line
.
Printf
(
absformatter
,
dXpos
,
dYpos
);
line
.
Printf
(
absformatter
,
dXpos
,
dYpos
);
...
...
gerbview/gerbview_frame.cpp
View file @
c2bd2491
...
@@ -846,6 +846,10 @@ void GERBVIEW_FRAME::UpdateStatusBar()
...
@@ -846,6 +846,10 @@ void GERBVIEW_FRAME::UpdateStatusBar()
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
formatter
=
wxT
(
"Ro %f Th %f"
);
formatter
=
wxT
(
"Ro %f Th %f"
);
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
line
.
Printf
(
formatter
,
To_User_Unit
(
g_UserUnit
,
ro
),
theta
);
line
.
Printf
(
formatter
,
To_User_Unit
(
g_UserUnit
,
ro
),
theta
);
...
@@ -875,6 +879,10 @@ void GERBVIEW_FRAME::UpdateStatusBar()
...
@@ -875,6 +879,10 @@ void GERBVIEW_FRAME::UpdateStatusBar()
absformatter
=
wxT
(
"X %f Y %f"
);
absformatter
=
wxT
(
"X %f Y %f"
);
locformatter
=
wxT
(
"dx %f dy %f d %f"
);
locformatter
=
wxT
(
"dx %f dy %f d %f"
);
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
line
.
Printf
(
absformatter
,
dXpos
,
dYpos
);
line
.
Printf
(
absformatter
,
dXpos
,
dYpos
);
...
...
pagelayout_editor/pl_editor_frame.cpp
View file @
c2bd2491
...
@@ -474,6 +474,10 @@ void PL_EDITOR_FRAME::UpdateStatusBar()
...
@@ -474,6 +474,10 @@ void PL_EDITOR_FRAME::UpdateStatusBar()
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
SetStatusText
(
wxEmptyString
,
5
);
SetStatusText
(
wxEmptyString
,
5
);
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
wxString
line
;
wxString
line
;
...
...
pcbnew/basepcbframe.cpp
View file @
c2bd2491
...
@@ -677,6 +677,10 @@ void PCB_BASE_FRAME::UpdateStatusBar()
...
@@ -677,6 +677,10 @@ void PCB_BASE_FRAME::UpdateStatusBar()
case
UNSCALED_UNITS
:
case
UNSCALED_UNITS
:
formatter
=
wxT
(
"Ro %f Th %f"
);
formatter
=
wxT
(
"Ro %f Th %f"
);
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
line
.
Printf
(
formatter
,
To_User_Unit
(
g_UserUnit
,
ro
),
theta
);
line
.
Printf
(
formatter
,
To_User_Unit
(
g_UserUnit
,
ro
),
theta
);
...
@@ -707,6 +711,10 @@ void PCB_BASE_FRAME::UpdateStatusBar()
...
@@ -707,6 +711,10 @@ void PCB_BASE_FRAME::UpdateStatusBar()
absformatter
=
wxT
(
"X %f Y %f"
);
absformatter
=
wxT
(
"X %f Y %f"
);
locformatter
=
wxT
(
"dx %f dy %f dist %f"
);
locformatter
=
wxT
(
"dx %f dy %f dist %f"
);
break
;
break
;
case
DEGREES
:
wxASSERT
(
false
);
break
;
}
}
line
.
Printf
(
absformatter
,
dXpos
,
dYpos
);
line
.
Printf
(
absformatter
,
dXpos
,
dYpos
);
...
...
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