From a8461d31702a8f8b641cd203febfc3e64b7892c5 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 1 May 2006 17:39:19 +0000 Subject: [PATCH] & operator should be && virtual OnDismiss() access should match base extraneous semicolon git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datavgen.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 92cf52354a..f3b748fd19 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -343,7 +343,7 @@ bool wxDataViewToggleCell::SetValue( const wxVariant &value ) { m_toggle = value.GetBool(); - return true;; + return true; } bool wxDataViewToggleCell::GetValue( wxVariant &WXUNUSED(value) ) @@ -460,10 +460,6 @@ public: sizer->Fit( this ); } - virtual void OnDismiss() - { - } - void OnCalendar( wxCalendarEvent &event ); wxCalendarCtrl *m_cal; @@ -471,6 +467,11 @@ public: size_t m_col; size_t m_row; +protected: + virtual void OnDismiss() + { + } + private: DECLARE_EVENT_TABLE() }; @@ -1519,7 +1520,7 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event ) if (m_lastOnSame) { - if ((col == m_currentCol) & (current == m_currentRow) && + if ((col == m_currentCol) && (current == m_currentRow) && (cell->GetMode() == wxDATAVIEW_CELL_EDITABLE) ) { m_renameTimer->Start( 100, true ); -- 2.47.2