Bug 272576

Summary: Legend items should be unique
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.0.3   
Target Milestone: 2.0.4   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nicolas Brisset 2011-05-05 23:29:49 UTC
Version:           2.0.3
OS:                Linux

Following the recent refactoring of legends, there are some side effects. For instance, in some cases items can't be distinguished. This is not acceptable.

Reproducible: Always

Steps to Reproduce:
- Plot CStk from the TWIN1xxx sample
- Use the change data file tool to plot the same from TWIN2

Actual Results:  
The legend has two identical entries.  

Expected Results:  
In that particular case the name could stay in the left label as it is common, and we'd need a hint at the datasource or a way to recognize which curve is which (the C1/C2 id?).

OS: all
There may be other corner cases which are not right...
Comment 1 Netterfield 2011-09-08 13:27:57 UTC
SVN commit 1252193 by netterfield:

BUG: 272576
If automatic legend names are the same, disambiguate using the filename of the Y vector.


 M  +1 -4      libkst/datavector.cpp  
 M  +3 -2      libkst/labelinfo.h  
 M  +2 -1      libkst/matrix.cpp  
 M  +12 -1     libkstapp/legenditem.cpp  
 M  +3 -1      libkstapp/scriptserver.cpp  
 M  +2 -3      libkstmath/histogram.cpp  
 M  +1 -0      libkstmath/psd.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1252193