From a0184ac80ce9d8ce9eef7eabb572faf458c19cfc Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Sun, 2 Feb 2014 16:47:25 +0100 Subject: [PATCH] MapWidget: silence compiler warning --- src/GUI/MapWidget.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index 8a5a0b715..6c0dd27d2 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -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 } -- 2.39.5