error when I try to change plot properties

Bug #159131 reported by panicpat
2
Affects Status Importance Assigned to Milestone
gNumExp
Fix Committed
Medium
Unassigned

Bug Description

numexp-core 0.16.1
gnumexp 0.11.0

Insert function sin(t)
Drawing is ok
try to change properties then
Error
Traceback (most recent call last):
  File "/usr/lib/gnumexp/xygraph/view.py", line 493, in on_edit_properties
    self.plot_area.selected_properties()
  File "/usr/lib/gnumexp/xygraph/plotarea.py", line 631, in selected_properties
    assert self.selected_object is not None
AssertionError

Revision history for this message
David Boucher (bouda1) wrote :

I think you don't use gnumexp 0.11 but the bazaar version.

If we ask for property of a given curve by right-clicking on it, all works correctly.

But you're right if we access to the Edit menu and then we choose the properties item.

Thanks for the bug report.

Revision history for this message
David Boucher (bouda1) wrote :

I've made a patch but I'm not entirely satisfied with it. It's sure that the properties button should be disabled if a curve is not selected, but that's also true for the cut, the clear and the copy buttons.

Also if the clear button is choosen, the buttons must be disabled at new. If I correct all those possibilities, I obtain a code that is not beautiful.

I suppose there's something more aesthetic.

We also have a similar problem with the paste button, that should be enabled only if the press-paper contains a curve...

Changed in gnumexp:
importance: Undecided → Medium
status: New → Confirmed
David Boucher (bouda1)
Changed in gnumexp:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.