projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fcffaf
)
Reset the expander column when clearing columns in generic wxDVC.
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Tue, 20 Sep 2011 18:37:08 +0000
(18:37 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Tue, 20 Sep 2011 18:37:08 +0000
(18:37 +0000)
The expander column becomes invalid when all columns are cleared, don't keep
a dangling pointer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69165
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/generic/datavgen.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/datavgen.cpp
b/src/generic/datavgen.cpp
index 6f44e1d13ed094efa24154dec34da6d877007bdb..745e38b4706fddfe0df7a7d18381175cf70231e8 100644
(file)
--- a/
src/generic/datavgen.cpp
+++ b/
src/generic/datavgen.cpp
@@
-4357,6
+4357,7
@@
bool wxDataViewCtrl::DeleteColumn( wxDataViewColumn *column )
bool wxDataViewCtrl::ClearColumns()
{
+ SetExpanderColumn(NULL);
m_cols.Clear();
m_colsBestWidths.clear();
OnColumnsCountChanged();