Commit 69bc2897 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Convert Q_ASSERT to KIS_SAFE_ASSERT

This doesn't properly fix bug 415625, but the assert here in addJob
shouldn't be fatal.

BUG:415625
parent 478a8be4
......@@ -49,8 +49,8 @@ KisStroke::KisStroke(KisStrokeStrategy *strokeStrategy, Type type, int levelOfDe
KisStroke::~KisStroke()
{
Q_ASSERT(m_strokeEnded);
Q_ASSERT(m_jobsQueue.isEmpty());
KIS_ASSERT_RECOVER_NOOP(m_strokeEnded);
KIS_ASSERT_RECOVER_NOOP(m_jobsQueue.isEmpty());
}
bool KisStroke::supportsSuspension()
......@@ -81,7 +81,7 @@ void KisStroke::suspendStroke(KisStrokeSP recipient)
void KisStroke::addJob(KisStrokeJobData *data)
{
Q_ASSERT(!m_strokeEnded || m_isCancelled);
KIS_SAFE_ASSERT_RECOVER_RETURN(!m_strokeEnded || m_isCancelled);
enqueue(m_dabStrategy.data(), data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment