[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/kcalc
From:       Alberto Garcia Hierro <skyhusker () linuxlover ! org>
Date:       2004-08-23 17:01:17
Message-ID: 20040823170117.BBE82900E () office ! kde ! org
[Download RAW message or body]

CVS commit by hierro: 

Fixed a bug in KCalcDisplay::setText()
which introduced separator in error,
producing "Er.ror" in the display.


  M +3 -3      kcalcdisplay.cpp   1.21


--- kdeutils/kcalc/kcalcdisplay.cpp  #1.20:1.21
@@ -280,5 +280,5 @@ void KCalcDisplay::setText(QString const
         
         // If we aren't in decimal mode, we don't need to modify the string
-        if (_num_base == NB_DECIMAL)
+        if (_num_base == NB_DECIMAL && !_error)
         {
                 // Obtain decimal symbol and thousands separator
@@ -302,5 +302,5 @@ void KCalcDisplay::setText(QString const
 QString KCalcDisplay::text() const
 {
-        if (_num_base != NB_DECIMAL)
+        if (_num_base != NB_DECIMAL || _error)
                 return QLabel::text();
         


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic