From bf9b535f6677a6d170baba0036b418854a53573b Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 30 Aug 2013 14:43:18 +0200 Subject: [PATCH] Fixed warning. --- common/view/wx_view_controls.cpp | 2 +- include/view/wx_view_controls.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index 58fef65260..465b94f8ae 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -35,10 +35,10 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxWindow* aParentPanel ) : VIEW_CONTROLS( aView ), m_state( IDLE ), m_grabMouse( false ), + m_snappingEnabled( true ), m_autoPanEnabled( false ), m_autoPanMargin( 0.1 ), m_autoPanSpeed( 0.15 ), - m_snappingEnabled( true ), m_parentPanel( aParentPanel ) { m_parentPanel->Connect( wxEVT_MOTION, wxMouseEventHandler( diff --git a/include/view/wx_view_controls.h b/include/view/wx_view_controls.h index 7c9621fb58..81c3ed1d83 100644 --- a/include/view/wx_view_controls.h +++ b/include/view/wx_view_controls.h @@ -128,15 +128,15 @@ private: /// Flag for grabbing the mouse cursor bool m_grabMouse; + /// Should the cursor snap to grid or move freely + bool m_snappingEnabled; + /// Flag for turning on autopanning bool m_autoPanEnabled; /// Distance from cursor to VIEW edge when panning is active float m_autoPanMargin; - /// Should the cursor snap to grid or move freely - bool m_snappingEnabled; - /// How fast is panning when in auto mode float m_autoPanSpeed;