Bug 153647 - Legend's "match contents to plot" not persistant when modifying plots
Summary: Legend's "match contents to plot" not persistant when modifying plots
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.5.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 22:21 UTC by D. V. Wiebe
Modified: 2007-12-11 01:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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