? .vtkDijkstraGraphGeodesicPath.h.swp
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/VTK/VTK/Graphics/CMakeLists.txt,v
retrieving revision 1.185
retrieving revision 1.187
diff -u -r1.185 -r1.187
--- CMakeLists.txt	27 Jun 2008 12:31:37 -0000	1.185
+++ CMakeLists.txt	6 Jul 2008 00:29:34 -0000	1.187
@@ -261,7 +261,7 @@
 vtkApproximatingSubdivisionFilter
 vtkButtonSource
 vtkDicer
-vtkDijkstraGraphGeodesicPath
+vtkDijkstraGraphGeodesicPath.cxx
 vtkEdgeSubdivisionCriterion.cxx 
 vtkExtractSelectionBase
 vtkGeodesicPath
Index: vtkDijkstraGraphGeodesicPath.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Graphics/vtkDijkstraGraphGeodesicPath.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vtkDijkstraGraphGeodesicPath.cxx	23 Feb 2008 12:06:08 -0000	1.6
+++ vtkDijkstraGraphGeodesicPath.cxx	7 Jul 2008 22:43:09 -0000	1.7
@@ -3,8 +3,8 @@
   Program:   Visualization Toolkit
   Module:  $RCSfile: vtkDijkstraGraphGeodesicPath.cxx,v $
   Language:  C++
-  Date:    $Date: 2008-02-23 12:06:08 $
-  Version:   $Revision: 1.6 $
+  Date:    $Date: 2008-07-07 22:43:09 $
+  Version:   $Revision: 1.7 $
   
   Made by Rasmus Paulsen
   email:  rrp(at)imm.dtu.dk
@@ -28,7 +28,7 @@
 #include "vtkPointData.h"
 #include "vtkCellArray.h"
 
-vtkCxxRevisionMacro(vtkDijkstraGraphGeodesicPath, "$Revision: 1.6 $");
+vtkCxxRevisionMacro(vtkDijkstraGraphGeodesicPath, "$Revision: 1.7 $");
 vtkStandardNewMacro(vtkDijkstraGraphGeodesicPath);
 
 //----------------------------------------------------------------------------
@@ -104,7 +104,7 @@
 
   vtkPolyData *output = vtkPolyData::SafeDownCast(
     outInfo->Get(vtkDataObject::DATA_OBJECT()));
-  if (!input)
+  if (!output)
     {
     return 0;
     }
@@ -117,6 +117,11 @@
     {
     this->Reset();
     }
+
+  if (this->NumberOfVertices == 0)
+    {
+    return 0;
+    }
     
   this->ShortestPath(this->StartVertex, this->EndVertex);
   this->TraceShortestPath(input, output, this->StartVertex, this->EndVertex);
