Bug 153647

Summary: Legend's "match contents to plot" not persistant when modifying plots
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.5.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description D. V. Wiebe 2007-12-07 22:21:35 UTC
Version:           1.5.0 (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.1.2 
OS:                Linux

When displaying a legend along with a plot, the "match legend to plot" checkbox sometimes becomes unchecked following certain plot updates.  As a result, subsequent changes to the plot won't be reflected in the legend, unless this checkbox is re-checked beforehand.

Steps to reproduce:

1. Create a plot with several curves.
2. Edit Plot -> Appearance -> check both "Show Legend" and "Match contents to plot" -> OK
3. Now that the plot has a legend: Edit Plot -> Content -> remove one curve from the list of displayed objects -> OK

Result:

The curve removed from the plot will also be removed from the legend, but the "Match contents to plot" checkbox has now been un-checked, and subsequent changes to the contents of the plot won't be reflected in the legend, unless "Match contents to plot" is again checked.

Expected Result:

Changing the displayed objects of a plot shouldn't affect the state of the "Match contents to plot" checkbox.
Comment 1 Andrew Walker 2007-12-11 01:38:28 UTC
SVN commit 747084 by arwalker:

BUG:153647 Unchecking the 'Match contents to box' when a curve is added or removed from the plot contents appears to have been deliberate as of 1.4.0 - but with no stated reason. Such behaviour appears incorrect and so has been fixed.

 M  +0 -2      kst2dplotwidget_i.cpp  


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