// headers
// -----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "treectlg.h"
#endif
size_t *pIndex = (size_t *)&cookie;
if ( *pIndex < children.Count() )
{
- return children.Item(*pIndex++);
+ return children.Item((*pIndex)++);
}
else
{
}
else // no custom buttons
{
- static const int wImage = 10;
- static const int hImage = 12;
+ static const int wImage = 9;
+ static const int hImage = 9;
wxRendererNative::Get().DrawTreeItemButton
(
if (!next)
{
wxTreeItemId current = m_key_current;
- while (current && !next)
+ while (current.IsOk() && !next)
{
current = GetItemParent( current );
if (current) next = GetNextSibling( current );