Commits

Aleš Erjavec committed 109fbf4

Fixed gene variable initialization.

Comments (0)

Files changed (1)

orangecontrib/bio/widgets/OWGeneNetwork.py

                 data, "genesinrows", default=self.use_attr_names
             )
 
-            if self.gene_var_index >= len(self.varmodel):
+            if not (0 <= self.gene_var_index < len(self.varmodel)):
                 self.gene_var_index = len(self.varmodel) - 1
 
             self.openContext("", data)