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

Reported by Nigel Malthus on 2010-11-09
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GASP Core
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.

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

Other bug subscribers