Skip to content

Commit

Permalink
Restore the track height when loading files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
michaelgregorius committed Jul 16, 2017
1 parent b7b2204 commit ebc9137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit ebc9137

Please sign in to comment.