Skip to content

Commit

Permalink
COMP: Fix build error introduced in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinter committed Oct 17, 2023
1 parent 66e5887 commit a9d08cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions DicomRtImportExport/SubjectHierarchyPlugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ SET (${KIT}_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
set(${KIT}_TARGET_LIBRARIES
vtkSlicerRtCommon
vtkSlicerPlanarImageModuleLogic
vtkSlicerBeamsModuleMRML
vtkSlicerSubjectHierarchyModuleLogic
qSlicerSubjectHierarchyModuleWidgets
MRMLCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ void qSlicerSubjectHierarchyRtDoseVolumePlugin::convertCurrentNodeToRtDoseVolume
std::string doseUnitValueInStudy = shNode->GetItemAttribute(studyItemID, vtkSlicerRtCommon::DICOMRTIMPORT_DOSE_UNIT_VALUE_ATTRIBUTE_NAME);

bool referencedInstanceIsSet = false;
std::vector< vtkIdType > studyChildrenIDs;
std::vector<vtkIdType> studyChildrenIDs;
shNode->GetItemChildren(studyItemID, studyChildrenIDs);
// find RTPlan node and get InstanceUID of that plan to use it as ReferencedInstanceUID for converted RTDose
for (int childItemID : studyChildrenIDs)
for (vtkIdType childItemID : studyChildrenIDs)
{
vtkMRMLRTPlanNode* planNode = vtkMRMLRTPlanNode::SafeDownCast(shNode->GetItemDataNode(childItemID));
if (planNode)
Expand All @@ -346,6 +346,7 @@ void qSlicerSubjectHierarchyRtDoseVolumePlugin::convertCurrentNodeToRtDoseVolume
{
shNode->SetItemAttribute(currentItemID, vtkMRMLSubjectHierarchyConstants::GetDICOMReferencedInstanceUIDsAttributeName(), planInstanceUID.c_str());
referencedInstanceIsSet = true;
break;
}
}
}
Expand Down

0 comments on commit a9d08cc

Please sign in to comment.