From: Eduardo DAVILA Date: Tue, 5 Dec 2017 08:04:57 +0000 (+0100) Subject: #2711 creaVtk Feature New Normal new Box ReadMHDPlane X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=cf0bc4afad6916bb3f3e9d7865ad1c2b19112aea;p=creaVtk.git #2711 creaVtk Feature New Normal new Box ReadMHDPlane --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkReadMHDPlane.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkReadMHDPlane.cxx index 4364ec6..48b1603 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkReadMHDPlane.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkReadMHDPlane.cxx @@ -245,8 +245,8 @@ vtkImageData* ReadMHDPlane::ChangeOrientation(vtkImageData* img) int yy; int dimY=ext[3]-ext[2]+1; int sizeByte=sizeLine*img->GetScalarSize(); - void *ptrDst=newImageOrinted->GetScalarPointer() + sizeByte*dimY; - void *ptrOrg=img->GetScalarPointer(); + char *ptrDst=(char*)(newImageOrinted->GetScalarPointer()) + sizeByte*dimY; + char *ptrOrg=(char*)(img->GetScalarPointer()); for (yy=0 ; yy