Commit 91d20ac9 authored by claes's avatar claes

Bugfix in listdescriptor, superclass attributes where not printed

parent 639d4f0d
/* /*
* Proview $Id: wb_utl.cpp,v 1.3 2007-07-05 13:38:39 claes Exp $ * Proview $Id: wb_utl.cpp,v 1.4 2007-09-05 08:22:18 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -8655,13 +8655,11 @@ static int utl_list_get_parvalue ( ...@@ -8655,13 +8655,11 @@ static int utl_list_get_parvalue (
ldh_sParDef *bodydef; ldh_sParDef *bodydef;
int rows; int rows;
char body[20]; char body[20];
char parname[32]; pwr_tOName parname;
char *object_par; char *object_par;
char *object_element; char *object_element;
int elements; int elements;
int found; int found;
char upper_name[80];
char inupper_name[80];
pwr_tBoolean *p_Boolean; pwr_tBoolean *p_Boolean;
pwr_tFloat32 *p_Float32; pwr_tFloat32 *p_Float32;
pwr_tFloat64 *p_Float64; pwr_tFloat64 *p_Float64;
...@@ -8733,11 +8731,9 @@ static int utl_list_get_parvalue ( ...@@ -8733,11 +8731,9 @@ static int utl_list_get_parvalue (
for ( j = 0; j < rows; j++) for ( j = 0; j < rows; j++)
{ {
/* Convert parname to upper case */ cdh_SuppressSuper( parname, bodydef[j].ParName);
utl_toupper( upper_name, bodydef[j].ParName);
utl_toupper( inupper_name, parameter);
if (strcmp( inupper_name, upper_name) == 0) if (cdh_NoCaseStrcmp( parameter, parname) == 0)
{ {
found = 1; found = 1;
break; break;
...@@ -8753,7 +8749,7 @@ static int utl_list_get_parvalue ( ...@@ -8753,7 +8749,7 @@ static int utl_list_get_parvalue (
return FOE__NOPAR; return FOE__NOPAR;
} }
strcpy( parname, bodydef[j].ParName); // strcpy( parname, bodydef[j].ParName);
if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_ARRAY ) if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_ARRAY )
elements = bodydef[j].Par->Output.Info.Elements; elements = bodydef[j].Par->Output.Info.Elements;
......
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