Skip to content

Commit

Permalink
Track: do not load height information if greater than default height
Browse files Browse the repository at this point in the history
This is a workaround for issue #3585927. Once we found the source of
this issue, we can revert this commit.
  • Loading branch information
tobydox committed Nov 11, 2012
1 parent c9d5c1d commit d3d6d65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,8 @@ void track::loadSettings( const QDomElement & _this )
node = node.nextSibling();
}

if( _this.attribute( "height" ).toInt() >= MINIMAL_TRACK_HEIGHT )
if( _this.attribute( "height" ).toInt() >= MINIMAL_TRACK_HEIGHT &&
_this.attribute( "height" ).toInt() <= DEFAULT_TRACK_HEIGHT ) // workaround for #3585927, tobydox/2012-11-11
{
m_height = _this.attribute( "height" ).toInt();
}
Expand Down

0 comments on commit d3d6d65

Please sign in to comment.