Commit 8390fec6 authored by Maciej Suminski's avatar Maciej Suminski

Minor fixes.

parent 47582e27
...@@ -316,6 +316,8 @@ bool TOOL_MANAGER::RunAction( const std::string& aActionName, bool aNow, void* a ...@@ -316,6 +316,8 @@ bool TOOL_MANAGER::RunAction( const std::string& aActionName, bool aNow, void* a
return true; return true;
} }
wxASSERT_MSG( action != NULL, wxString::Format( _( "Could not find action %s." ), aActionName ) );
return false; return false;
} }
......
...@@ -116,7 +116,7 @@ public: ...@@ -116,7 +116,7 @@ public:
return RunAction( aActionName, aNow, reinterpret_cast<void*>( aParam ) ); return RunAction( aActionName, aNow, reinterpret_cast<void*>( aParam ) );
} }
bool RunAction( const std::string& aActionName, bool aNow, void* aParam = NULL ); bool RunAction( const std::string& aActionName, bool aNow, void* aParam );
bool RunAction( const std::string& aActionName, bool aNow = false ) bool RunAction( const std::string& aActionName, bool aNow = false )
{ {
......
...@@ -203,10 +203,15 @@ public: ...@@ -203,10 +203,15 @@ public:
*/ */
virtual void ViewUpdate( int aUpdateFlags = ALL ) virtual void ViewUpdate( int aUpdateFlags = ALL )
{ {
if( m_view && m_requiredUpdate == NONE ) if( m_view )
m_view->MarkForUpdate( this ); {
assert( aUpdateFlags != NONE );
if( m_requiredUpdate == NONE )
m_view->MarkForUpdate( this );
m_requiredUpdate |= aUpdateFlags; m_requiredUpdate |= aUpdateFlags;
}
} }
/** /**
......
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