karpagarajan / mdcm

Automatically exported from code.google.com/p/mdcm
0 stars 0 forks source link

VR of ST (Short Text) is created with isString==false #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. DcmDataset data = new DcmDataset(DcmTS.ExplicitVRLittleEndian);
2. data.AddElementWithValue(DcmTags.InstitutionAddress, "Baker St. 221b, 
London, UK");

What is the expected output? What do you see instead?
Expected: a plain addition of Institution Address element to this DataSet
In real: an exception is thrown telling "Tried to create element with 
incorrect VR".

Please provide any additional information below.
It's a copy-paste mistake, I believe.
In DcmVR.cs, changing the isString parameter from "false" to "true" in line 
135 fixes the problem:
public static DcmVR ST = new DcmVR("ST", "Short Text", true, true, true, 
PadSpace, 1024, 1, VrRestriction.Maximum);

Original issue reported on code.google.com by kkarma...@gmail.com on 9 Jul 2009 at 8:38

GoogleCodeExporter commented 8 years ago
Corrected in SVN 64

Original comment by colby.di...@gmail.com on 25 Sep 2009 at 5:11