Commit e32d5b87 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

zaxisCreate: don't define longname for ZAXIS_GENERIC.

parent 88ba278a
...@@ -102,7 +102,7 @@ void zaxisGetTypeDescription(int zaxisType, int *outPositive, const char **outNa ...@@ -102,7 +102,7 @@ void zaxisGetTypeDescription(int zaxisType, int *outPositive, const char **outNa
{ {
if (outPositive) *outPositive = ZaxistypeEntry[zaxisType].positive; if (outPositive) *outPositive = ZaxistypeEntry[zaxisType].positive;
if (outName) *outName = ZaxistypeEntry[zaxisType].name; 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 (outStdName) *outStdName = ZaxistypeEntry[zaxisType].stdname;
if (outUnit) *outUnit = ZaxistypeEntry[zaxisType].units; if (outUnit) *outUnit = ZaxistypeEntry[zaxisType].units;
} }
...@@ -206,7 +206,7 @@ int zaxisCreate_(int zaxistype, int size, int id) ...@@ -206,7 +206,7 @@ int zaxisCreate_(int zaxistype, int size, int id)
int zaxisID = zaxisptr->self; int zaxisID = zaxisptr->self;
zaxisDefName(zaxisID, ZaxistypeEntry[zaxistype].name); zaxisDefName(zaxisID, ZaxistypeEntry[zaxistype].name);
zaxisDefLongname(zaxisID, ZaxistypeEntry[zaxistype].longname); if ( zaxistype != ZAXIS_GENERIC ) zaxisDefLongname(zaxisID, ZaxistypeEntry[zaxistype].longname);
zaxisDefUnits(zaxisID, ZaxistypeEntry[zaxistype].units); zaxisDefUnits(zaxisID, ZaxistypeEntry[zaxistype].units);
if ( *ZaxistypeEntry[zaxistype].stdname ) if ( *ZaxistypeEntry[zaxistype].stdname )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment