Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if( storedHeight >= MINIMAL_TRACK_HEIGHT && storedHeight < 400 )

This works as a quick dirty fix.

Copy link
Contributor

@zonkmachine zonkmachine Jul 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAXIMUM_TRACK_HEIGHT ≈ 200 ?

{
m_height = element.attribute( "height" ).toInt();
m_height = storedHeight;
}
}

Expand Down