projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git]
/
src
/
msw
/
notebook.cpp
diff --git
a/src/msw/notebook.cpp
b/src/msw/notebook.cpp
index aec8a9979a0c1c4ca61c98a0d27f1132a3acad83..d2fe79e5575a770a55b2a422975b06dd98447b22 100644
(file)
--- a/
src/msw/notebook.cpp
+++ b/
src/msw/notebook.cpp
@@
-329,6
+329,9
@@
bool wxNotebook::RemovePage(int nPage)
m_aPages.Remove(nPage);
+ if ( m_aPages.IsEmpty() )
+ m_nSelection = -1;
+
return TRUE;
}
@@
-344,6
+347,8
@@
bool wxNotebook::DeleteAllPages()
TabCtrl_DeleteAllItems(m_hwnd);
+ m_nSelection = -1;
+
return TRUE;
}