[Liblas-commits] hg: switch filter logic to make easier to read

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Jul 5 16:10:48 EDT 2010


changeset 6aeb8622dedd in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=6aeb8622dedd
summary: switch filter logic to make easier to read

diffstat:

 doc/tutorial/cpp.txt |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r 7c319a70d798 -r 6aeb8622dedd doc/tutorial/cpp.txt
--- a/doc/tutorial/cpp.txt	Fri Jul 02 11:54:13 2010 -0500
+++ b/doc/tutorial/cpp.txt	Mon Jul 05 15:10:40 2010 -0500
@@ -263,10 +263,10 @@
         } 
 
         // If the type is switched to eExclusion, we'll throw out all last returns.
-        if (GetType() == eInclusion) {
+        if (GetType() == eExclusion && output == true) {
+            output = false;
+        } else {
             output = true;
-        } else {
-            output = false;
         }
         return output;
     }


More information about the Liblas-commits mailing list