--- C:\DOCUME~1\rmaynard\LOCALS~1\Temp\pq3DWidget.cxx-rev2987.svn000.tmp.cxx	Thu Jan 15 15:25:34 2009
+++ C:\Work\ParaViewGeo\trunk\Qt\Components\pq3DWidget.cxx	Mon Dec  8 15:51:52 2008
@@ -507,19 +507,20 @@
     {
     return 0;
     }
-  
+  int properPort;
   vtkSMSourceProxy* input = NULL;
   vtkSMInputProperty* ivp = vtkSMInputProperty::SafeDownCast(
     this->getReferenceProxy()->GetProperty("Input"));
   if(ivp && ivp->GetNumberOfProxies())
     {
+		properPort = ivp->GetOutputPortForConnection(0);		
     vtkSMProxy* pxy = ivp->GetProxy(0);
-    input = vtkSMSourceProxy::SafeDownCast(pxy);
+    input = vtkSMSourceProxy::SafeDownCast(pxy);				
     }
 
   if(input)
     {
-    input->GetDataInformation()->GetBounds(bounds);
+    input->GetDataInformation(properPort)->GetBounds(bounds);
     return 1;
     }
   return 0;
