Skip to content
  • Jean-Christophe Fillion-Robin's avatar
    vtkRenderer::PickProp: Fix crash handling empty selection · f20cfc83
    Jean-Christophe Fillion-Robin authored
    This commit is a follow-up of 1eb083a8 (use hardwareselector to perform picking).
    It fixes a crash in vtkRenderer::PickProp happening when the selection is
    empty. This was discovered in 3D Slicer during the creation of widget:
    
      vtkAbstractWidget::SetEnabled
        -> this->WidgetRep->ComputeInteractionState(X, Y)
          -> vtkAnnotationROIRepresentation2D::ComputeInteractionState
             -> this->HandlePicker2D->Pick
                -> crash
    f20cfc83