Commit 62e20759 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'Instable vertical position of alternate combined fragment widget'

The reason for this bug was that some of the variables used for
calculating the vertical position are of type int, which cuts the
fragment value of the vertical position.

BUG:390677
FIXED-IN:2.24.3 (KDE Applications 17.12.2)
parent 1a3a5424
......@@ -71,7 +71,7 @@ void CombinedFragmentWidget::paint(QPainter *painter, const QStyleOptionGraphics
int w = width();
int h = height();
int line_width = initialLabelWidth;
int old_Y;
qreal old_Y;
setPenFromSettings(painter);
......
......@@ -64,13 +64,13 @@ private:
* Minimum value of the Y-coordinate of the dash line
* (= y-coordinate of the combined fragment)
*/
int m_yMin;
qreal m_yMin;
/**
* Maximum value of the Y-coordinate of the dash line
* (= y-coordinate of the combined fragment + height of the combined fragment)
*/
int m_yMax;
qreal m_yMax;
CombinedFragmentWidget *m_parent;
};
......
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