From 205111a6014cbcb10cde671e60c909c13bb6a909 Mon Sep 17 00:00:00 2001 From: Alexander Wiebel Date: Tue, 22 Aug 2017 14:52:31 +0200 Subject: [PATCH] [FIX #413] fixed fall through statements --- src/core/graphicsEngine/WGEViewer.cpp | 1 + src/core/graphicsEngine/WPickHandler.cpp | 1 + src/modules/data/io/WReaderVTK.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/core/graphicsEngine/WGEViewer.cpp b/src/core/graphicsEngine/WGEViewer.cpp index 618b4b7ea..f72c31746 100644 --- a/src/core/graphicsEngine/WGEViewer.cpp +++ b/src/core/graphicsEngine/WGEViewer.cpp @@ -93,6 +93,7 @@ WGEViewer::WGEViewer( std::string name, osg::ref_ptr wdata, int m_View->addEventHandler( m_pickHandler ); if( name != std::string( "Main View" ) ) break; + /* FALLTHRU */ case( WGECamera::PERSPECTIVE ): // camera manipulator m_View->setCameraManipulator( new WGEZoomTrackballManipulator() ); diff --git a/src/core/graphicsEngine/WPickHandler.cpp b/src/core/graphicsEngine/WPickHandler.cpp index 00be798ff..d34be731e 100644 --- a/src/core/graphicsEngine/WPickHandler.cpp +++ b/src/core/graphicsEngine/WPickHandler.cpp @@ -118,6 +118,7 @@ bool WPickHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAda break; case osgGA::GUIEventAdapter::SCROLL_DOWN: m_scrollWheel--; + break; case osgGA::GUIEventAdapter::SCROLL_2D: // FIXME: the osg doc tells us nothing about this value, but is seems to be always 120 or -120 if( ea.getScrollingDeltaY() > 0 ) diff --git a/src/modules/data/io/WReaderVTK.cpp b/src/modules/data/io/WReaderVTK.cpp index 2300d9997..a727faa3e 100644 --- a/src/modules/data/io/WReaderVTK.cpp +++ b/src/modules/data/io/WReaderVTK.cpp @@ -112,6 +112,7 @@ boost::shared_ptr< WDataSet > WReaderVTK::read() break; case TENSORS: ds = boost::shared_ptr< WDataSet >( new WDataSetDTI( values, grid ) ); + break; case ARRAYS: if( values->dimension() > 6 ) { -- GitLab