Commit 5fe44e27 authored by Sharaf Zaman's avatar Sharaf Zaman Committed by Halla Rempt
Browse files

Bugfix: Particle Engine memory usage with negative

.. value of gravity.

BUG:434467
parent 8e47877c
......@@ -86,7 +86,7 @@ void ParticleBrush::draw(KisPaintDeviceSP dab, const KoColor& color, const QPoin
QRect boundingRect;
if (m_properties->scale.x() < 0 || m_properties->scale.y() < 0) {
if (m_properties->scale.x() < 0 || m_properties->scale.y() < 0 || m_properties->gravity < 0) {
boundingRect = dab->defaultBounds()->bounds();
}
......
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