[GRASS-SVN] r67915 - grass/trunk/imagery/i.segment

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 21 02:34:44 PST 2016


Author: mmetz
Date: 2016-02-21 02:34:43 -0800 (Sun, 21 Feb 2016)
New Revision: 67915

Modified:
   grass/trunk/imagery/i.segment/open_files.c
Log:
i.segment: fix #2856

Modified: grass/trunk/imagery/i.segment/open_files.c
===================================================================
--- grass/trunk/imagery/i.segment/open_files.c	2016-02-20 23:40:41 UTC (rev 67914)
+++ grass/trunk/imagery/i.segment/open_files.c	2016-02-21 10:34:43 UTC (rev 67915)
@@ -497,7 +497,8 @@
 	rgtree_insert(globals->reg_tree, &(globals->rs));
     }
     else {
-	update_band_vals(Ri->row, Ri->col, &(globals->rs), globals);
+	if (globals->rs.count > 1)
+	    update_band_vals(Ri->row, Ri->col, &(globals->rs), globals);
     }
     if (globals->rs.count > 1)
 	globals->n_regions -= (globals->rs.count - 1);



More information about the grass-commit mailing list