rec: Fix compress & histogram attribute bugs

Problems introduced during Dirk's non-val attribute changes.
This commit is contained in:
Andrew Johnson
2012-10-19 15:01:43 -05:00
parent 7f21c8eec1
commit c9da766e9e
2 changed files with 5 additions and 5 deletions

View File

@@ -418,7 +418,7 @@ static long get_precision(DBADDR *paddr, long *precision)
compressRecord *prec=(compressRecord *)paddr->precord;
*precision = prec->prec;
if(dbGetFieldIndex(paddr) == indexof(BPTR)) return(0);
if(dbGetFieldIndex(paddr) == indexof(VAL)) return(0);
recGblGetPrec(paddr,precision);
return(0);
}
@@ -428,7 +428,7 @@ static long get_graphic_double(DBADDR *paddr,struct dbr_grDouble *pgd)
compressRecord *prec=(compressRecord *)paddr->precord;
switch (dbGetFieldIndex(paddr)) {
case indexof(BPTR):
case indexof(VAL):
case indexof(IHIL):
case indexof(ILIL):
pgd->upper_disp_limit = prec->hopr;
@@ -445,7 +445,7 @@ static long get_control_double(DBADDR *paddr, struct dbr_ctrlDouble *pcd)
compressRecord *prec=(compressRecord *)paddr->precord;
switch (dbGetFieldIndex(paddr)) {
case indexof(BPTR):
case indexof(VAL):
case indexof(IHIL):
case indexof(ILIL):
pcd->upper_ctrl_limit = prec->hopr;

View File

@@ -426,7 +426,7 @@ static long get_graphic_double(DBADDR *paddr,struct dbr_grDouble *pgd)
histogramRecord *prec=(histogramRecord *)paddr->precord;
switch (dbGetFieldIndex(paddr)) {
case indexof(BPTR):
case indexof(VAL):
pgd->upper_disp_limit = prec->hopr;
pgd->lower_disp_limit = prec->lopr;
break;
@@ -444,7 +444,7 @@ static long get_control_double(DBADDR *paddr,struct dbr_ctrlDouble *pcd)
histogramRecord *prec=(histogramRecord *)paddr->precord;
switch (dbGetFieldIndex(paddr)) {
case indexof(BPTR):
case indexof(VAL):
pcd->upper_ctrl_limit = prec->hopr;
pcd->lower_ctrl_limit = prec->lopr;
break;