From f262cffff65ff7655c13daf72382193284247497 Mon Sep 17 00:00:00 2001 From: Javier Castillo Date: Tue, 8 Feb 2011 15:49:42 +0100 Subject: Version: 0.5.0 Fix: Negative Beträge werde durch 0 ersetzt. Update: setup.msi ,setup.exe --- AccountValue/Form1.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'AccountValue/Form1.cs') diff --git a/AccountValue/Form1.cs b/AccountValue/Form1.cs index 81998dd..5d5170c 100644 --- a/AccountValue/Form1.cs +++ b/AccountValue/Form1.cs @@ -21,6 +21,7 @@ using System.Diagnostics; // (C) 2005 - 2006 Randolph Welte randy@uni-freiburg.de################################# // // Bearbeitung Bohdan Dulya d_bohdan@gmx.de 2006 - 2009 ################################ +// Javier Castillo mail@javiercastillogt.com 2011 ###################################### // & Marco Haustein 2008 ############################################################### @@ -617,6 +618,13 @@ namespace AccountValue } else { + // Prüfe ob value negativ ist + if (value.StartsWith("-")) + { + // falls ja, setze value auf 0 + value = "0"; + } + value += "€"; last_stand = value; } -- cgit v1.2.3-55-g7522