Commit 8a86265c authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QuickToolBar: bugfix for GradientLine

This was just plain wrong.
A negative offset makes no sense in any
case.
parent b372f9db
......@@ -289,7 +289,7 @@ void GradientLine::mouseMoveEvent(QMouseEvent *event)
if ((newStop >=0) && (newStop <= 1))
m_stops[currentColorIndex()] = newStop;
m_yOffset += event->pos().y() - m_dragStart.y();
if (m_yOffset > 0 || m_useGradient) { //deleting only in base state
if (m_yOffset > 0) { //deleting only in base state
m_yOffset = 0;
} else if ((m_yOffset < - 12) && (currentColorIndex()) != 0 && (currentColorIndex() < m_stops.size() - 1)) {
m_yOffset = 0;
......
Supports Markdown
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