Use in wxPG classes wxMilliClock_t variables to store values returned by wxGetLocalTimeMillis() function.
wxMilliClock_t is always mapped to the proper base type and hence can be used even if wxLongLong type is not defined (when wxUSE_LONGLONG is disabled).
This commit is contained in:
@@ -392,7 +392,7 @@ void wxPropertyGridPageState::OnClientWidthChange( int newWidth, int widthChange
|
||||
|
||||
if ( !m_isSplitterPreSet && m_dontCenterSplitter )
|
||||
{
|
||||
long timeSinceCreation = (::wxGetLocalTimeMillis() - GetGrid()->m_timeCreated).ToLong();
|
||||
wxMilliClock_t timeSinceCreation = ::wxGetLocalTimeMillis() - GetGrid()->m_timeCreated;
|
||||
|
||||
// If too long, don't set splitter
|
||||
if ( timeSinceCreation < 250 )
|
||||
|
Reference in New Issue
Block a user