Skip to content

Commit

Permalink
Merge pull request #85 from celeron533/bugfix
Browse files Browse the repository at this point in the history
Bugfix for Sequence Tag
  • Loading branch information
celeron533 authored Jul 3, 2024
2 parents 2c2cf29 + 0b7a9d6 commit 5e97033
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 0 additions & 5 deletions DicomGrep/Views/AboutView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@
https://github.com/Microsoft/XamlBehaviorsWpf
</Hyperlink>
</TextBlock>
<TextBlock TextWrapping="Wrap">WinCopies.WindowsAPICodePack.Shell
<Hyperlink NavigateUri="https://wincopies.com/windows-api-codepack" RequestNavigate="Hyperlink_RequestNavigate">
https://wincopies.com/windows-api-codepack
</Hyperlink>
</TextBlock>
<TextBlock TextWrapping="Wrap">NLog
<Hyperlink NavigateUri="https://nlog-project.org/" RequestNavigate="Hyperlink_RequestNavigate">
https://nlog-project.org/
Expand Down
6 changes: 4 additions & 2 deletions DicomGrepCore/Services/SearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,14 @@ private IList<ResultDicomItem> CompareDicomTagAndValue(DicomDataset dataset, ref
{
DicomSequence sequenceItem = (DicomSequence)dicomItem;

if (string.IsNullOrWhiteSpace(criteria.SearchTag) ||
CompareDicomTag(dicomItem.Tag, criteria.DicomSearchTag))
if (string.IsNullOrEmpty(criteria.SearchText) &&
(string.IsNullOrWhiteSpace(criteria.SearchTag) ||
CompareDicomTag(dicomItem.Tag, criteria.DicomSearchTag)))
{
resultDicomItems ??= new List<ResultDicomItem>();
resultDicomItems.Add(new ResultDicomItem(dicomItem.Tag, $"Count = {sequenceItem.Items.Count}", []));
}

foreach (DicomDataset innerDataset in sequenceItem.Items)
{
CompareDicomTagAndValue(innerDataset, ref resultDicomItems);
Expand Down

0 comments on commit 5e97033

Please sign in to comment.