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

List:       koffice-devel
Subject:    Patch for bug #121772
From:       Alfredo Beaumont <alfredo.beaumont () gmail ! com>
Date:       2006-02-16 14:13:31
Message-ID: fe8f60450602160613t39f0344bx () mail ! gmail ! com
[Download RAW message or body]

Attached is a patch for bug #121772: "=COUNTIF(range; "0") counts
blank cells" https://bugs.kde.org/show_bug.cgi?id=121772 This time
it's been much easier, just 2 lines :D

["fix-121772.diff" (text/x-diff)]

Index: valuecalc.cc
===================================================================
--- valuecalc.cc	(revisión: 510126)
+++ valuecalc.cc	(copia de trabajo)
@@ -1928,6 +1928,8 @@
 
 bool ValueCalc::matches (const Condition &cond, Value val)
 {
+  if (val.isEmpty())
+	return false;
   if (cond.type == numeric) {
     double d = converter->asFloat (val).asFloat();
     switch ( cond.comp )


_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


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

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