Update of /cvsroot/mahogany/M/src/wx/generic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16606/src/wx/generic
Modified Files:
persctrl.cpp
Log Message:
made wxPListBox::RestoreSelection public: it's needed by wxChooseTemplateDialog
Index: persctrl.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/wx/generic/persctrl.cpp,v
retrieving revision 1.92
retrieving revision 1.93
diff -b -u -2 -r1.92 -r1.93
--- persctrl.cpp 20 Feb 2005 18:03:36 -0000 1.92
+++ persctrl.cpp 30 Jun 2005 14:22:16 -0000 1.93
@@ -1033,10 +1033,7 @@
void wxPListBox::OnSize(wxSizeEvent& event)
{
- if ( m_bFirstTime ) {
+ if ( m_bFirstTime )
RestoreSelection();
- m_bFirstTime = FALSE;
- }
-
// important things may be done in the base class version!
event.Skip();
@@ -1046,4 +1043,6 @@
void wxPListBox::RestoreSelection()
{
+ m_bFirstTime = false;
+
if ( m_persist->ChangePath() ) {
long sel = m_persist->GetConfig()->Read(m_persist->GetKey(), 0l);
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates