diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 0d3ee0a10e..d249230de9 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -1235,7 +1235,7 @@ public: void BeginBatch() { m_batchCount++; } void EndBatch(); - int GetBatchCount() { return m_batchCount; } + int GetBatchCount() const { return m_batchCount; } virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL) wxOVERRIDE; diff --git a/interface/wx/grid.h b/interface/wx/grid.h index 78df3091df..8999c5e694 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -4991,7 +4991,7 @@ public: (yet) matching calls to EndBatch(). While the grid's batch count is greater than zero the display will not be updated. */ - int GetBatchCount(); + int GetBatchCount() const; /** Returns the total number of grid columns.