Put "#if wxUSE_TOOLBAR" around a variable only used in this case.

No real changes.

Closes #14957.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-01-20 02:09:27 +00:00
parent ca25dffb44
commit 0ed8f52acd

View File

@@ -745,12 +745,14 @@ bool wxPropertyGridManager::DoSelectPage( int index )
return false;
}
#if wxUSE_TOOLBAR
wxPropertyGridPage* prevPage;
if ( m_selPage >= 0 )
prevPage = GetPage(m_selPage);
else
prevPage = m_emptyPage;
#endif
wxPropertyGridPage* nextPage;