← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 496: Applied a patch from Emil Berg to fix bug #700439, Error dropping transitions to the timeline if ...

 

------------------------------------------------------------
revno: 496
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Thu 2011-08-11 20:23:40 +0100
message:
  Applied a patch from Emil Berg to fix bug #700439, Error dropping transitions to the timeline if the snapping tool is off.
modified:
  openshot/windows/MainGTK.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/MainGTK.py'
--- openshot/windows/MainGTK.py	2011-08-10 21:12:56 +0000
+++ openshot/windows/MainGTK.py	2011-08-11 19:23:40 +0000
@@ -1345,6 +1345,8 @@
 			if drop_track:
 				self.new_trans_object.update_parent(drop_track)
 				drop_track.reorder_transitions()
+				
+				distance_from_clip = self.new_trans_object.get_snap_difference(self.new_trans_object, self.new_transition)
 
 				# determine the direction of the drag
 				if isSnap: