--- a/src/panointeractivecanvas.cpp
+++ b/src/panointeractivecanvas.cpp
@@ -553,7 +553,7 @@
   if(m_givenboundaries.getPans().validMin())
     showPanTiltLine(m_givenboundaries.getPans().getMin() - 180.0, 1.0,0.0,0.0,true);
 
-  if(m_givenboundaries.getPans().validMin())
+  if(m_givenboundaries.getPans().validMax())
     showPanTiltLine(m_givenboundaries.getPans().getMax() - 180.0, 0.0,1.0,0.0,true);
 
   if(m_givenboundaries.getTilts().validMin())