From 8fc856de1fc08a2667daf170f9b5e293f7b706ad Mon Sep 17 00:00:00 2001 From: Roger Gammans Date: Sun, 22 Jan 2006 13:45:34 +0000 Subject: [PATCH] Fix bug [1297817] - applied suggested patch git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index e4c865c618..f40295f5f3 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4183,8 +4183,7 @@ bool wxGrid::SetTable( wxGridTableBase *table, bool takeOwnership, m_table = table; m_table->SetView( this ); - if (takeOwnership) - m_ownTable = true; + m_ownTable = takeOwnership; m_selection = new wxGridSelection( this, selmode ); CalcDimensions(); -- 2.45.2