From ebc9137a0f4d18f08f1454da616f0db313d092e4 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Mon, 10 Jul 2017 19:51:07 +0200 Subject: [PATCH] Restore the track height when loading files The track height is already stored for every file that is saved. Remove a condition that prevents its retrieval from files. The removed condition was added as a fix for an issue with the number #3585927 but it was not possible anymore to find out what this issue was about. --- src/core/Track.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Track.cpp b/src/core/Track.cpp index 65187f552d8..7795b205c56 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -2150,10 +2150,10 @@ void Track::loadSettings( const QDomElement & element ) node = node.nextSibling(); } - if( element.attribute( "height" ).toInt() >= MINIMAL_TRACK_HEIGHT && - element.attribute( "height" ).toInt() <= DEFAULT_TRACK_HEIGHT ) // workaround for #3585927, tobydox/2012-11-11 + int storedHeight = element.attribute( "height" ).toInt(); + if( storedHeight >= MINIMAL_TRACK_HEIGHT ) { - m_height = element.attribute( "height" ).toInt(); + m_height = storedHeight; } }