Fixed warning.

This commit is contained in:
Maciej Suminski 2013-08-30 14:43:18 +02:00
parent 01d4080e47
commit d0fc362ec6
2 changed files with 4 additions and 4 deletions

View File

@ -35,10 +35,10 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxWindow* aParentPanel ) :
VIEW_CONTROLS( aView ), VIEW_CONTROLS( aView ),
m_state( IDLE ), m_state( IDLE ),
m_grabMouse( false ), m_grabMouse( false ),
m_snappingEnabled( true ),
m_autoPanEnabled( false ), m_autoPanEnabled( false ),
m_autoPanMargin( 0.1 ), m_autoPanMargin( 0.1 ),
m_autoPanSpeed( 0.15 ), m_autoPanSpeed( 0.15 ),
m_snappingEnabled( true ),
m_parentPanel( aParentPanel ) m_parentPanel( aParentPanel )
{ {
m_parentPanel->Connect( wxEVT_MOTION, wxMouseEventHandler( m_parentPanel->Connect( wxEVT_MOTION, wxMouseEventHandler(

View File

@ -128,15 +128,15 @@ private:
/// Flag for grabbing the mouse cursor /// Flag for grabbing the mouse cursor
bool m_grabMouse; bool m_grabMouse;
/// Should the cursor snap to grid or move freely
bool m_snappingEnabled;
/// Flag for turning on autopanning /// Flag for turning on autopanning
bool m_autoPanEnabled; bool m_autoPanEnabled;
/// Distance from cursor to VIEW edge when panning is active /// Distance from cursor to VIEW edge when panning is active
float m_autoPanMargin; float m_autoPanMargin;
/// Should the cursor snap to grid or move freely
bool m_snappingEnabled;
/// How fast is panning when in auto mode /// How fast is panning when in auto mode
float m_autoPanSpeed; float m_autoPanSpeed;