[xiph-commits] r12657 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Mon Mar 5 14:37:46 PST 2007
Author: xiphmont
Date: 2007-03-05 14:37:43 -0800 (Mon, 05 Mar 2007)
New Revision: 12657
Modified:
trunk/sushivision/panel-2d.c
Log:
When crosshairs are inactive, legend should not be displaying the
objective value under crosshair location
Modified: trunk/sushivision/panel-2d.c
===================================================================
--- trunk/sushivision/panel-2d.c 2007-03-05 20:59:41 UTC (rev 12656)
+++ trunk/sushivision/panel-2d.c 2007-03-05 22:37:43 UTC (rev 12657)
@@ -906,18 +906,20 @@
// add each active objective plane to the legend
// choose the value under the crosshairs
- for(i=0;i<p->objectives;i++){
-
- if(!mapping_inactive_p(p2->mappings+i)){
- compute_result vals;
- compute_single_point(p,p->objective_list[i].o, plot->selx, plot->sely, &vals);
-
- if(!isnan(vals.y)){
+ if(plot->cross_active){
+ for(i=0;i<p->objectives;i++){
+
+ if(!mapping_inactive_p(p2->mappings+i)){
+ compute_result vals;
+ compute_single_point(p,p->objective_list[i].o, plot->selx, plot->sely, &vals);
- snprintf(buffer,320,"%s = %f",
- p->objective_list[i].o->name,
- vals.y);
- plot_legend_add(plot,buffer);
+ if(!isnan(vals.y)){
+
+ snprintf(buffer,320,"%s = %f",
+ p->objective_list[i].o->name,
+ vals.y);
+ plot_legend_add(plot,buffer);
+ }
}
}
}
More information about the commits
mailing list