Minor fixes.

This commit is contained in:
Maciej Suminski 2015-04-30 10:46:08 +02:00
parent 47582e2741
commit 8390fec69d
3 changed files with 11 additions and 4 deletions

View File

@ -316,6 +316,8 @@ bool TOOL_MANAGER::RunAction( const std::string& aActionName, bool aNow, void* a
return true;
}
wxASSERT_MSG( action != NULL, wxString::Format( _( "Could not find action %s." ), aActionName ) );
return false;
}

View File

@ -116,7 +116,7 @@ public:
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 )
{

View File

@ -203,10 +203,15 @@ public:
*/
virtual void ViewUpdate( int aUpdateFlags = ALL )
{
if( m_view && m_requiredUpdate == NONE )
m_view->MarkForUpdate( this );
if( m_view )
{
assert( aUpdateFlags != NONE );
m_requiredUpdate |= aUpdateFlags;
if( m_requiredUpdate == NONE )
m_view->MarkForUpdate( this );
m_requiredUpdate |= aUpdateFlags;
}
}
/**