Commit b3b46667 authored by Ulf Hermann's avatar Ulf Hermann

Timeline: Fix sign of height marker for timeline items geometry

The adjustment for items of small height in the vertex shader was
broken.

Change-Id: Icfaef5b1e582696240fe1ed211dbb26502cc208e
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Ulf Hermann's avatarUlf Hermann <ulf.hermann@qt.io>
parent bad4bac2
......@@ -186,13 +186,13 @@ void OpaqueColoredPoint2DWithSize::setRight(const OpaqueColoredPoint2DWithSize *
void OpaqueColoredPoint2DWithSize::setTop(const OpaqueColoredPoint2DWithSize *master)
{
y = master->id < 0 ? master->y / -master->id : master->y;
h = y - TimelineModel::defaultRowHeight();
h = TimelineModel::defaultRowHeight() - y;
}
void OpaqueColoredPoint2DWithSize::setBottom(const OpaqueColoredPoint2DWithSize *master)
{
y = TimelineModel::defaultRowHeight();
h = TimelineModel::defaultRowHeight() - (master->id < 0 ? master->y / -master->id : master->y);
h = (master->id < 0 ? master->y / -master->id : master->y) - TimelineModel::defaultRowHeight();
}
void OpaqueColoredPoint2DWithSize::setBottomLeft(const OpaqueColoredPoint2DWithSize *master)
......
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