comparison OrthancServer/FromDcmtkBridge.cpp @ 535:da8e064d0d49 dicom-rt

rth api refactored
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Sep 2013 17:19:02 +0200
parents b22312081388
children 8cfc6119a5bd
comparison
equal deleted inserted replaced
532:b22312081388 535:da8e064d0d49
764 sequence->getVR() != EVR_SQ) 764 sequence->getVR() != EVR_SQ)
765 { 765 {
766 return false; 766 return false;
767 } 767 }
768 768
769 if (it->second > sequence->card()) 769 if (it->second < 0 || it->second > sequence->card())
770 { 770 {
771 return false; 771 return false;
772 } 772 }
773 773
774 current = sequence->getItem(it->second); 774 current = sequence->getItem(it->second);
775 assert(current != NULL); 775
776 if (current == NULL)
777 {
778 return false;
779 }
776 } 780 }
777 781
778 return GetTagValueInternal(value, *current, tag); 782 return GetTagValueInternal(value, *current, tag);
779 } 783 }
780 784