# HG changeset patch
# User ideenmodellierer
# Date 1574788406 -3600
# Node ID b57f497726f70a649b5fdaee9dcffd8dba28ec15
# Parent  27c56f1b185630bf465770a0d555d8b1403a890c
Bugfix negativ ascend bar:
Due to floating <> int conversion a value < 1 will result in a small bar in negativ direction if close to surface => display only ascend rates > 1m per minute

diff -r 27c56f1b1856 -r b57f497726f7 Discovery/Src/t7.c
--- a/Discovery/Src/t7.c	Tue Nov 26 18:02:48 2019 +0100
+++ b/Discovery/Src/t7.c	Tue Nov 26 18:13:26 2019 +0100
@@ -2123,7 +2123,7 @@
     GFX_write_string(&FontT105,&t7l2,TextL2,1);
 
     /* ascent rate graph */
-    if(stateUsed->lifeData.ascent_rate_meter_per_min > 0)
+    if(stateUsed->lifeData.ascent_rate_meter_per_min > 1)	/* a value < 1 would cause a bar in negative direction brush rectangle of 12 and step width of 6 */
     {
     	if(!pSettings->FlipDisplay)
     	{