]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Fix correction counting in the control program
authorMikko Rasa <tdb@tdb.fi>
Sat, 12 Dec 2015 17:10:48 +0000 (19:10 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 12 Dec 2015 17:10:48 +0000 (19:10 +0200)
source/control.c

index ae47c9e34083c0f9d98173263f850eb1c39a992f..ca4f6e7a67a62b70f0ff87de1817ba3b1b88b820 100644 (file)
@@ -47,7 +47,7 @@ GeometryCorrection *get_corrections(Display *display)
                return NULL;
        }
 
-       ncorrections = 0;
+       ncorrections = (names_length>0);
        for(i=0; i<names_length; ++i)
                if(!names[i])
                        ++ncorrections;