From: malaterre Date: Wed, 19 Oct 2005 16:49:05 +0000 (+0000) Subject: COMP: That was simply a typo X-Git-Tag: OpenJPEG.Version1.2~310 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c25e4f968be3a994bf23a43a78e154b343b88d6f;p=gdcm.git COMP: That was simply a typo --- diff --git a/src/gdcmVRKey.h b/src/gdcmVRKey.h index a594abbc..f633f003 100644 --- a/src/gdcmVRKey.h +++ b/src/gdcmVRKey.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmVRKey.h,v $ Language: C++ - Date: $Date: 2005/10/19 13:17:05 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/10/19 16:49:05 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -22,6 +22,8 @@ #include "gdcmCommon.h" #include +#include +#include // for std::ios::left, ... namespace gdcm { @@ -106,13 +108,13 @@ private : //----------------------------------------------------------------------------- inline std::ostream& operator<<(std::ostream& _os, const VRKey &_val) { - _os << _val.key[0] << _val[1]; + _os << _val.key[0] << _val.key[1]; return _os; } inline std::istream& operator>>(std::istream& _is, VRKey &_val) { - _is >> _val.key[0] >> _val[1]; + _is >> _val.key[0] >> _val.key[1]; return _is; }