← Back to team overview

openshot.bugs team mailing list archive

[Bug 700439] Re: Error dropping transitions to the timeline if the Snapping Tool is off

 

Found it weird that no one had fixed this issue yet, so here we go.
Patch attached.

** Patch added: "changes14.patch"
   https://bugs.launchpad.net/openshot/+bug/700439/+attachment/2266945/+files/changes14.patch

-- 
You received this bug notification because you are a member of OpenShot
Bugs, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/700439

Title:
  Error dropping transitions to the timeline if the Snapping Tool is off

Status in OpenShot Video Editor:
  Confirmed

Bug description:
  I tried to use the transition clock left to right. It was not added
  and I found in .xsession-errors:

  Hodiny zleva doprava
  /usr/lib/pymodules/python2.6/openshot/transitions/clock_left_to_right.pgm
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openshot/windows/MainGTK.py", line 823, in on_drop_trans_from_tree
      self.drop_cb(self.new_transition, self.tree_drag_context, self.new_transition.get_bounds().x1, 0.0, self.tree_drag_time)
    File "/usr/lib/pymodules/python2.6/openshot/windows/MainGTK.py", line 1061, in drop_cb
      self.new_transition.animate(distance_from_clip, bottom_y - self.new_transition.get_bounds().y1, 1.0, 0.0, False, 200, 4, goocanvas.ANIMATE_FREEZE)
  UnboundLocalError: local variable 'distance_from_clip' referenced before assignment
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openshot/windows/MainGTK.py", line 1061, in drop_cb
      self.new_transition.animate(distance_from_clip, bottom_y - self.new_transition.get_bounds().y1, 1.0, 0.0, False, 200, 4, goocanvas.ANIMATE_FREEZE)
  UnboundLocalError: local variable 'distance_from_clip' referenced before assignment
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openshot/windows/MainGTK.py", line 823, in on_drop_trans_from_tree
      self.drop_cb(self.new_transition, self.tree_drag_context, self.new_transition.get_bounds().x1, 0.0, self.tree_drag_time)
    File "/usr/lib/pymodules/python2.6/openshot/windows/MainGTK.py", line 1061, in drop_cb
      self.new_transition.animate(distance_from_clip, bottom_y - self.new_transition.get_bounds().y1, 1.0, 0.0, False, 200, 4, goocanvas.ANIMATE_FREEZE)
  UnboundLocalError: local variable 'distance_from_clip' referenced before assignment
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openshot/windows/MainGTK.py", line 1061, in drop_cb
      self.new_transition.animate(distance_from_clip, bottom_y - self.new_transition.get_bounds().y1, 1.0, 0.0, False, 200, 4, goocanvas.ANIMATE_FREEZE)
  UnboundLocalError: local variable 'distance_from_clip' referenced before assignment

  
  Xubuntu 10.10, OpenShot 1.2.2 from PPA

To manage notifications about this bug go to:
https://bugs.launchpad.net/openshot/+bug/700439/+subscriptions