]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix bug [1297817] - applied suggested patch
authorRoger Gammans <rgammans@computer-surgery.co.uk>
Sun, 22 Jan 2006 13:45:34 +0000 (13:45 +0000)
committerRoger Gammans <rgammans@computer-surgery.co.uk>
Sun, 22 Jan 2006 13:45:34 +0000 (13:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index e4c865c6183a111127d65e2d9fd059f4ae96353d..f40295f5f33d196df1a65b833804347f5c55f028 100644 (file)
@@ -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();