Commit fba00774 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

Timeline: Make time labels invisible if the timeline is empty

This avoids the "QTransform::translate with NaN called" warnings. They
were triggered by the text item having a negative width due to its
parent having a width of 0 and the item itself subtracting a margin
from that.

Change-Id: I3ee89b11ba2a27e568982a7ff9a9fe297907a37e
Reviewed-by: default avatarJoerg Bornemann <>
parent ba973a68
......@@ -134,6 +134,7 @@ Item {
anchors.bottomMargin: timeDisplay.textMargin
verticalAlignment: Text.AlignBottom
text: prettyPrintTime(column.blockStartTime, timeDisplay.rangeDuration)
visible: width > 0
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