Bug 295863

Summary: Crash creating a new curve
Product: [Applications] kst Reporter: Rüdiger Härtel <r_haertel>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: major CC: nicolas.brisset
Priority: NOR    
Version: 2.0.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: showcase for bug 295863

Description Rüdiger Härtel 2012-03-12 19:39:11 UTC
I open up kst and create a curve from a csv file.
Selecting (Button with Tooltip: create vector) INDEX of my csv file as x-axis works.
When trying to select (Button with tooltip edit selected vector) the data for the y-axis kst2 crashes.

It happens in file widgets(vectorselector.cpp@void VectorSelector::editVector().
Comment 1 Nicolas Brisset 2012-03-13 22:13:24 UTC
I have been trying to reproduce this and either it is a distribution-specific issue, or I simply haven't understood how to reproduce it. For one thing, I don't know which buttons you mean, in which dialog. The buttons you mention are not in the main interface, they have to be in some dialog: data wizard, edit plot, edit curve, ???

If you could be a bit more precise if your description, it'd be interesting to catch the crash. But right now I simply can't reproduce it.
And based on your explanations, I suspect you haven't found the data wizard, have you? That's the standard way to import data and plot curves in Kst.
Comment 2 Rüdiger Härtel 2012-03-14 19:46:41 UTC
Created attachment 69620 [details]
showcase for bug 295863
Comment 3 Rüdiger Härtel 2012-03-14 19:48:33 UTC
Comment on attachment 69620 [details]
showcase for bug 295863

The bug shows up when the Y-axis combobox is empty but you press button #2 (Edit selected vector).
Comment 4 Nicolas Brisset 2012-03-18 17:47:25 UTC
SVN commit 1286210 by brisset:

Don't crash when the user clicks the "Edit Vector" button and there is no selected vector.
Barth, please review. Maybe there is a nicer way to do it (like deactivating the button when there is no selection?).
But at least this seems to work well.



 M  +4 -1      vectorselector.cpp  


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