[GRASS-SVN] r67916 - grass/branches/releasebranch_7_0/imagery/i.segment

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 21 02:35:04 PST 2016


Author: mmetz
Date: 2016-02-21 02:35:04 -0800 (Sun, 21 Feb 2016)
New Revision: 67916

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

Modified: grass/branches/releasebranch_7_0/imagery/i.segment/open_files.c
===================================================================
--- grass/branches/releasebranch_7_0/imagery/i.segment/open_files.c	2016-02-21 10:34:43 UTC (rev 67915)
+++ grass/branches/releasebranch_7_0/imagery/i.segment/open_files.c	2016-02-21 10:35:04 UTC (rev 67916)
@@ -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