X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.cxx;h=2702de2c45e82b91548958f8fb068c680b4a4c5d;hb=b4039f93d1d97f94387402320a8786a3209938bc;hp=daa3691fba442c2fc08a80832072116a85c46e7f;hpb=77ae298f4ca7683d07165d386e9c02b36b8b0cde;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index daa3691f..2702de2c 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/04/27 09:52:27 $ - Version: $Revision: 1.234 $ + Date: $Date: 2005/04/27 10:00:35 $ + Version: $Revision: 1.235 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1356,48 +1356,6 @@ bool File::Write(std::string fileName, FileType writetype) InsertValEntry(s_lgPix,GrPixel, 0x0000); } - // FIXME : should be nice if we could move it to File - // (or in future gdcmPixelData class) - - // Drop Palette Color, if necessary - if ( GetEntryValue(0x0028,0x0002).c_str()[0] == '3' ) - { - // if SamplesPerPixel = 3, sure we don't need any LUT ! - // Drop 0028|1101, 0028|1102, 0028|1103 - // Drop 0028|1201, 0028|1202, 0028|1203 - - DocEntry *e = GetDocEntry(0x0028,0x01101); - if (e) - { - RemoveEntryNoDestroy(e); - } - e = GetDocEntry(0x0028,0x1102); - if (e) - { - RemoveEntryNoDestroy(e); - } - e = GetDocEntry(0x0028,0x1103); - if (e) - { - RemoveEntryNoDestroy(e); - } - e = GetDocEntry(0x0028,0x01201); - if (e) - { - RemoveEntryNoDestroy(e); - } - e = GetDocEntry(0x0028,0x1202); - if (e) - { - RemoveEntryNoDestroy(e); - } - e = GetDocEntry(0x0028,0x1203); - if (e) - { - RemoveEntryNoDestroy(e); - } - } - Document::WriteContent(fp, writetype); fp->close();