- gr = tag->second->GetGroup();
- el = tag->second->GetElement();
- lgr = tag->second->GetLength();
- val = tag->second->GetValue().c_str();
- vr = tag->second->GetVR();
+ gr = tag2->second->GetGroup();
+ el = tag2->second->GetElement();
+ lgr = tag2->second->GetLength();
+ val = tag2->second->GetValue().c_str();
+ vr = tag2->second->GetVR();