Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
e32d5b87
Commit
e32d5b87
authored
Aug 04, 2017
by
Uwe Schulzweida
Browse files
zaxisCreate: don't define longname for ZAXIS_GENERIC.
parent
88ba278a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zaxis.c
View file @
e32d5b87
...
...
@@ -102,7 +102,7 @@ void zaxisGetTypeDescription(int zaxisType, int *outPositive, const char **outNa
{
if
(
outPositive
)
*
outPositive
=
ZaxistypeEntry
[
zaxisType
].
positive
;
if
(
outName
)
*
outName
=
ZaxistypeEntry
[
zaxisType
].
name
;
if
(
outLongName
)
*
outLongName
=
ZaxistypeEntry
[
zaxisType
].
longname
;
if
(
outLongName
&&
zaxisType
!=
ZAXIS_GENERIC
)
*
outLongName
=
ZaxistypeEntry
[
zaxisType
].
longname
;
if
(
outStdName
)
*
outStdName
=
ZaxistypeEntry
[
zaxisType
].
stdname
;
if
(
outUnit
)
*
outUnit
=
ZaxistypeEntry
[
zaxisType
].
units
;
}
...
...
@@ -206,7 +206,7 @@ int zaxisCreate_(int zaxistype, int size, int id)
int
zaxisID
=
zaxisptr
->
self
;
zaxisDefName
(
zaxisID
,
ZaxistypeEntry
[
zaxistype
].
name
);
zaxisDefLongname
(
zaxisID
,
ZaxistypeEntry
[
zaxistype
].
longname
);
if
(
zaxistype
!=
ZAXIS_GENERIC
)
zaxisDefLongname
(
zaxisID
,
ZaxistypeEntry
[
zaxistype
].
longname
);
zaxisDefUnits
(
zaxisID
,
ZaxistypeEntry
[
zaxistype
].
units
);
if
(
*
ZaxistypeEntry
[
zaxistype
].
stdname
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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