Commit 205111a6 authored by Alexander Wiebel's avatar Alexander Wiebel

[FIX #413] fixed fall through statements

parent 8caa9740
...@@ -93,6 +93,7 @@ WGEViewer::WGEViewer( std::string name, osg::ref_ptr<osg::Referenced> wdata, int ...@@ -93,6 +93,7 @@ WGEViewer::WGEViewer( std::string name, osg::ref_ptr<osg::Referenced> wdata, int
m_View->addEventHandler( m_pickHandler ); m_View->addEventHandler( m_pickHandler );
if( name != std::string( "Main View" ) ) if( name != std::string( "Main View" ) )
break; break;
/* FALLTHRU */
case( WGECamera::PERSPECTIVE ): case( WGECamera::PERSPECTIVE ):
// camera manipulator // camera manipulator
m_View->setCameraManipulator( new WGEZoomTrackballManipulator() ); m_View->setCameraManipulator( new WGEZoomTrackballManipulator() );
......
...@@ -118,6 +118,7 @@ bool WPickHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAda ...@@ -118,6 +118,7 @@ bool WPickHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAda
break; break;
case osgGA::GUIEventAdapter::SCROLL_DOWN: case osgGA::GUIEventAdapter::SCROLL_DOWN:
m_scrollWheel--; m_scrollWheel--;
break;
case osgGA::GUIEventAdapter::SCROLL_2D: case osgGA::GUIEventAdapter::SCROLL_2D:
// FIXME: the osg doc tells us nothing about this value, but is seems to be always 120 or -120 // FIXME: the osg doc tells us nothing about this value, but is seems to be always 120 or -120
if( ea.getScrollingDeltaY() > 0 ) if( ea.getScrollingDeltaY() > 0 )
......
...@@ -112,6 +112,7 @@ boost::shared_ptr< WDataSet > WReaderVTK::read() ...@@ -112,6 +112,7 @@ boost::shared_ptr< WDataSet > WReaderVTK::read()
break; break;
case TENSORS: case TENSORS:
ds = boost::shared_ptr< WDataSet >( new WDataSetDTI( values, grid ) ); ds = boost::shared_ptr< WDataSet >( new WDataSetDTI( values, grid ) );
break;
case ARRAYS: case ARRAYS:
if( values->dimension() > 6 ) if( values->dimension() > 6 )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment