X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmFile.cxx;h=4b22d148d7ec4823f52bdf2e5f1ae1fbc130241a;hb=ea14e11cdd726f9c7e6d6384c7e9e508bc6efc2d;hp=1a57bb6d74116bd34dad2a44e8c51b4217587f4c;hpb=398de28036f1804dd0a77d5b715315f014253496;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 1a57bb6d..4b22d148 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -374,7 +374,7 @@ size_t gdcmFile::GetImageDataIntoVector (void* destination, size_t MaxSize) { unsigned char * a = (unsigned char *)destination; unsigned char * lutRGBA = (unsigned char *)GetLUTRGBA(); if (lutRGBA) { - int l = lgrTotale/3; + int l = lgrTotaleRaw; memmove(newDest, destination, l);// move Gray pixels to temp area int j; for (int i=0;i