summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-12-11 21:28:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-13 05:48:20 -0800
commit7bc77947f6ab37d0d557cc237ab0ecceb2ecbe64 (patch)
treec02c3113c323bf24c63796f6d34b82c030903b10 /profile-widget
parent003e490dd228ae5738dccd896359db76a623d32e (diff)
downloadsubsurface-7bc77947f6ab37d0d557cc237ab0ecceb2ecbe64.tar.gz
Fine tune the position of pictures in the profile
Start a new column a little bit earlier otherwise it will get difficult to fit a high number of pictures. Don't put more than ~16 pictures in one column. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index d6a5f3343..b40980e5f 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -2014,7 +2014,7 @@ void ProfileWidget2::plotPictures()
x = timeAxis->posAtValue(offsetSeconds);
if (i == 0)
y = 10;
- else if (fabs(x - lastX) < 4)
+ else if (fabs(x - lastX) < 3 && lastY <= (10 + 14 * 3))
y = lastY + 3;
else
y = 10;