if (imagedata->GetScalarType()==VTK_FLOAT)
{
- long *pOrg=(long*)imagedata->GetScalarPointer ((int)xx,(int)yy,(int)zz);
+ float *pOrg=(float*)imagedata->GetScalarPointer ((int)xx,(int)yy,(int)zz);
// itoa (*pOrg,zTzxt,10);
- double tmp=*pOrg;
+ double tmp=(double)*pOrg;
sprintf(zTzxt,"%3.2f",tmp);
}