Bug 272576 - Legend items should be unique
Summary: Legend items should be unique
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 2.0.3
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 2.0.4
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 23:29 UTC by Nicolas Brisset
Modified: 2011-09-08 13:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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