bugMyPaint - Bugs: bug #21256, error in rotate

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #21256: error in rotate

Submitted by:  Edgar Gonz├ílez <mred>
Submitted on:  Tue 05 Nov 2013 02:12:44 PM UTC  
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: git master 823fd27Planned Release: None
Operating System: Linux mint 15

Tue 05 Nov 2013 02:33:18 PM UTC, comment #1:

This should be fixed in current master since https://gitorious.org/mypaint/mypaint/commit/51e6834d. Please update and re-test.

Andrew Chadwick <achadwick>
Project Administrator
Tue 05 Nov 2013 02:12:44 PM UTC, original submission:

Traceback (most recent call last):
File "/usr/local/share/mypaint/gui/document.py", line 101, motion_notify_cb(self=<gui.document.Document object>, tdw=<TiledDrawWidget object at 0x3549be0 (TiledDrawWidget at 0x29a4610)>, event=<void>)
result = self.modes.top.motion_notify_cb(tdw, event)
self.__update_last_event_info(tdw, event)
variables: {'tdw': ('local', <TiledDrawWidget object at 0x3549be0 (TiledDrawWidget at 0x29a4610)>), 'result': (None, []), 'self.modes.top.motion_notify_cb': ('local', <bound method SwitchableFreehandMode.motion_notify_cb of <gui.freehand.SwitchableFreehandMode object at 0x3555c10>>), 'event': ('local', <void at 0x4a9ff30>)}
File "/usr/local/share/mypaint/gui/freehand.py", line 420, motion_notify_cb(self=<gui.freehand.SwitchableFreehandMode object>, tdw=<TiledDrawWidget object at 0x3549be0 (TiledDrawWidget at 0x29a4610)>, event=<void>, fakepressure=None)
if tdw.rotation != 0:
tilt_angle = math.atan2(ytilt, xtilt) - tdw.rotation
tilt_magnitude = math.sqrt((xtilt**2) + (ytilt**2))
variables: {'xtilt': ('local', -1.0), 'ytilt': ('local', -1.0), 'tilt_angle': (None, []), 'tdw.rotation': ('local', -6.083334454106533), 'math': (None, [])}
NameError: global name 'math' is not defined

Edgar González <mred>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by achadwick (Posted a comment)
  • -unavailable- added by mred (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 05 Nov 2013 02:34:05 PM UTCachadwickRelease=>git master 823fd27
    Tue 05 Nov 2013 02:33:18 PM UTCachadwickStatusNone=>Fixed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup