]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInfoTextImage.cxx
.
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkInfoTextImage.cxx
index e3a39578caffa39b8375f2ce39c39e0231da9a9c..d219404bc0c4202dfc6cb67fee2cd5dfd546681e 100644 (file)
@@ -283,9 +283,9 @@ void vtkInfoTextImage::PutPixelIntensity(int xx, int yy, int zz)
 
                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);
                }