[Kst] [Bug 84761] New: Plots with duplicate names can be created

Rick Chern rchern at interchange.ubc.ca
Thu Jul 8 21:01:09 CEST 2004

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
           Summary: Plots with duplicate names can be created
           Product: kst
           Version: unspecified
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kst kde org
        ReportedBy: rchern interchange ubc ca

Version:           0.98-devel (using KDE KDE 3.2.1)
Installed from:    RedHat RPMs
Compiler:          gcc (GCC) 3.3.2 20031022 
OS:                Linux

Autogenerated plot names don't seem to check existing plot names.

How to reproduce:
- start Kst
- go to Plots->Edit Plots, enter P1 for Unique plot name, click "Apply as New"
- enter name for new window if prompted
- start Data Wizard, and create at least one plot with any data

Go to Plots->Edit Plots, and there will be two plots with name P1 

Expected Behaviour: Autogenerated plot name does not duplicate existing plot name.

Is this because KST::suggestPlotName only uses a counter to generate plot names, and does not check existing plot names?

More information about the Kst mailing list