From c25e4f968be3a994bf23a43a78e154b343b88d6f Mon Sep 17 00:00:00 2001 From: malaterre Date: Wed, 19 Oct 2005 16:49:05 +0000 Subject: [PATCH] COMP: That was simply a typo --- src/gdcmVRKey.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; } -- 2.48.1