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

Minor fixes.

parent 47582e27
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}

+1 −1
Original line number Diff line number Diff line
@@ -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 )
    {
+8 −3
Original line number Diff line number Diff line
@@ -203,11 +203,16 @@ public:
     */
    virtual void ViewUpdate( int aUpdateFlags = ALL )
    {
        if( m_view && m_requiredUpdate == NONE )
        if( m_view )
        {
            assert( aUpdateFlags != NONE );

            if( m_requiredUpdate == NONE )
                m_view->MarkForUpdate( this );

            m_requiredUpdate |= aUpdateFlags;
        }
    }

    /**
     * Function ViewRelease()