MantisBT - ParaView
View Issue Details
0011941ParaViewBugpublic2011-03-08 12:582011-04-05 17:17
Paul Edwards 
Utkarsh Ayachit 
normalminoralways
closedfixed 
LinuxUbuntu10.04
Development 
3.12 
0011941: Bug with selection in chart view
If you select an area in the line chart view that does not contain any points it causes a segfault.
1) Create Wavelet
2) Extract Surface
3) Plot On Intersection Curves
4) Drag middle mouse button around a region that doesn't have any points
patch to fix:

diff --git a/Qt/Core/pqContextView.cxx b/Qt/Core/pqContextView.cxx
index db7fc09..a3356b5 100644
--- a/Qt/Core/pqContextView.cxx
+++ b/Qt/Core/pqContextView.cxx
@@ -445,6 +445,10 @@ void pqContextView::selectionChanged()
     }
 
   vtkIdTypeArray *arr = vtkIdTypeArray::SafeDownCast(node->GetSelectionList());
+ if (!arr)
+ {
+ return;
+ }
   ids.clear();
   for (vtkIdType i = 0; i < arr->GetNumberOfTuples(); ++i)
     {
No tags attached.
Issue History
2011-03-08 12:58Paul EdwardsNew Issue
2011-03-08 13:01Paul EdwardsNote Added: 0025694
2011-04-01 11:20Utkarsh AyachitNote Added: 0026021
2011-04-01 11:20Utkarsh AyachitStatusbacklog => @80@
2011-04-01 11:20Utkarsh AyachitFixed in Version => 3.12
2011-04-01 11:20Utkarsh AyachitResolutionopen => fixed
2011-04-01 11:20Utkarsh AyachitAssigned To => Utkarsh Ayachit
2011-04-05 17:17Alan ScottNote Added: 0026102
2011-04-05 17:17Alan ScottStatus@80@ => closed

Notes
(0025694)
Paul Edwards   
2011-03-08 13:01   
Sorry - I'm using an older version of the source and this has been fixed now. Please close this issue.
(0026021)
Utkarsh Ayachit   
2011-04-01 11:20   
Marking closed by users request.
(0026102)
Alan Scott   
2011-04-05 17:17   
Tested Linux, local server, trunk.
(And , the reporter says to close it!)