]> git.mxchange.org Git - flightgear.git/commitdiff
MapWidget: silence compiler warning
authorChristian Schmitt <chris@ilovelinux.de>
Sun, 2 Feb 2014 15:47:25 +0000 (16:47 +0100)
committerChristian Schmitt <chris@ilovelinux.de>
Sun, 2 Feb 2014 15:47:25 +0000 (16:47 +0100)
src/GUI/MapWidget.cxx

index 8a5a0b715e4fe991bf390ffa7c3c1ee62de4f184..6c0dd27d22bfdd448682d6fdbdb9fb33cd66eef9 100644 (file)
@@ -1647,6 +1647,9 @@ SGGeod MapWidget::unproject(const SGVec2d& p) const
         SGVec3d cartPt = orient.rotate(SGVec3d(unscaled.x(), unscaled.y(), 0.0));
         return SGGeod::fromCart(cartPt + cartCenter);
     }
+
+    default:
+      throw sg_exception("MapWidget::unproject(): requested unknown projection");
     } // of projection mode switch
 }