Commit d0749a3a authored by Maciej Suminski's avatar Maciej Suminski

Small refactoring.

parent 8a4417ec
...@@ -197,8 +197,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent ) ...@@ -197,8 +197,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
dir = m_view->ToWorld( dir, false ); dir = m_view->ToWorld( dir, false );
m_view->SetCenter( m_view->GetCenter() + dir * m_autoPanSpeed ); m_view->SetCenter( m_view->GetCenter() + dir * m_autoPanSpeed );
wxPaintEvent redrawEvent; m_parentPanel->Refresh();
wxPostEvent( m_parentPanel, redrawEvent );
} }
break; break;
......
...@@ -36,7 +36,7 @@ class TOOL_MANAGER; ...@@ -36,7 +36,7 @@ class TOOL_MANAGER;
class PCB_BASE_FRAME; class PCB_BASE_FRAME;
namespace KiGfx { namespace KiGfx {
class VIEW ; class VIEW;
}; };
/** /**
......
...@@ -54,8 +54,8 @@ public: ...@@ -54,8 +54,8 @@ public:
void onWheel( wxMouseEvent& aEvent ); void onWheel( wxMouseEvent& aEvent );
void onMotion( wxMouseEvent& aEvent ); void onMotion( wxMouseEvent& aEvent );
void onButton( wxMouseEvent& aEvent ); void onButton( wxMouseEvent& aEvent );
void onEnter( wxMouseEvent& aEvent ); void onEnter( wxMouseEvent& WXUNUSED( aEvent ) );
void onTimer( wxTimerEvent& aEvent ); void onTimer( wxTimerEvent& WXUNUSED( aEvent ) );
/** /**
* Function SetGrabMouse() * Function SetGrabMouse()
......
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