From d3d6d658368ed547087f308e9a9c16c3b3b72c2c Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 11 Nov 2012 22:17:11 +0100 Subject: [PATCH] Track: do not load height information if greater than default height This is a workaround for issue #3585927. Once we found the source of this issue, we can revert this commit. --- src/core/track.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/track.cpp b/src/core/track.cpp index 06692d20a..8f47dee16 100644 --- a/src/core/track.cpp +++ b/src/core/track.cpp @@ -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(); }