Patch #1880 2007-02-09 12:27
stahta01
Truncated new project scripted wizard fix for wxW28- Download
- 1880-Truncated_new.patch (733 bytes)
Index: src/plugins/scriptedwizard/wiz.cpp
===================================================================
--- src/plugins/scriptedwizard/wiz.cpp (revision 3589)
+++ src/plugins/scriptedwizard/wiz.cpp (working copy)
@@ -1009,8 +1009,12 @@
wxWizardPageSimple::Chain(m_Pages[i - 1], m_Pages[i]);
// allow the wizard to size itself around the pages
- for (size_t i = 1; i < m_Pages.GetCount(); ++i)
- m_pWizard->GetPageAreaSizer()->Add(m_Pages[i]);
+ #if wxCHECK_VERSION(2, 8, 0)
+ m_pWizard->GetPageAreaSizer()->Add(m_Pages[0]);
+ #else
+ for (size_t i = 1; i < m_Pages.GetCount(); ++i)
+ m_pWizard->GetPageAreaSizer()->Add(m_Pages[i]);
+ #endif
m_pWizard->Fit();
}
History
stahta01 2007-02-09 12:34
I did NOT write this patch.
This thread was posted in the forums at
http://forums.codeblocks.org/index.php?topic=5071.0
http://forums.codeblocks.org/index.php?topic=5132.msg40138#msg40138
Tim S
mandrav 2007-03-27 10:37
Patch applied.