Disable assert in BrushPreview::clearPixelDelegate

This assert fails too often and we prefer to show some data
to try to fix it in a near future instead of showing an assertion
dialog on Windows or closing the whole app.
This commit is contained in:
David Capello 2016-05-02 13:04:31 -03:00
parent 00c7cb7e54
commit 53683579b8

View File

@ -500,7 +500,12 @@ void BrushPreview::clearPixelDelegate(ui::Graphics* g, const gfx::Point& pt, gfx
}
}
ASSERT(m_savedPixelsIterator <= m_savedPixelsLimit);
#if _DEBUG
if (!(m_savedPixelsIterator <= m_savedPixelsLimit)) {
TRACE("m_savedPixelsIterator <= m_savedPixelsLimit: %d <= %d failed\n",
m_savedPixelsIterator, m_savedPixelsLimit);
}
#endif
}
} // namespace app