|
From: <gun...@us...> - 2011-07-27 10:59:04
|
Revision: 15725
http://dcm4che.svn.sourceforge.net/dcm4che/?rev=15725&view=rev
Author: gunterze
Date: 2011-07-27 10:58:58 +0000 (Wed, 27 Jul 2011)
Log Message:
-----------
[#DCM-486] Improve handling of invalid tags
Modified Paths:
--------------
dcm4che2/trunk/dcm4che-core/src/main/java/org/dcm4che2/data/VRMap.java
Modified: dcm4che2/trunk/dcm4che-core/src/main/java/org/dcm4che2/data/VRMap.java
===================================================================
--- dcm4che2/trunk/dcm4che-core/src/main/java/org/dcm4che2/data/VRMap.java 2011-07-27 09:37:32 UTC (rev 15724)
+++ dcm4che2/trunk/dcm4che-core/src/main/java/org/dcm4che2/data/VRMap.java 2011-07-27 10:58:58 UTC (rev 15725)
@@ -193,7 +193,10 @@
return vrOfCommand(tag);
if ((tag & 0x00010000) != 0) { // Private Element
if ((tag & 0x0000ff00) == 0)
- return VR.LO; // Private Creator
+ if ((tag & 0x000000f0) == 0) //Invalid tag
+ return VR.UN;
+ else // Private Creator
+ return VR.LO;
tag &= 0xffff00ff;
} else {
final int ggg00000 = tag & 0xffe00000;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|