Plot fails with "center is not in (x,y) format"

Bug #672949 reported by Nigel Malthus
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GASP Core
New
Undecided
Unassigned

Bug Description

There seems to be a mistake in api.py which results in a "center is not in (x,y) format" error message when
the Plot class is called.
line 173 and 175:

    def __init__(self, pos, color=(0,0,0), size=1):
        try:
            self.center = make_it_a_point(center)

                                                                            ------'pos' in Line 173, but 'center' in Line 175.

    def __init__(self, pos, color=(0,0,0), size=1):
        try:
            self.center = make_it_a_point(pos)

                                                                           ---------fixes it.

Revision history for this message
Rickard Westman (rwestman) wrote :

Bug #1841477, filed before I noticed this bug report, provides more details about a recent reproduction of this bug reported in 2010. I also noticed that it is still unfixed as of 0.3.6, released in 2019.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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