--- MenuEditor.old.py	2009-04-17 15:03:43.000000000 +0200
+++ MenuEditor.py	2009-07-13 23:36:18.000000000 +0200
@@ -688,10 +688,15 @@
 	def __positionItem(self, parent, item, before=None, after=None):
 		if not before and not after:
 			return
+		current = parent.contents.index(item)
 		if after:
-			index = parent.contents.index(after) + 1
+			index = parent.contents.index(after)
+			if current > index:
+				index += 1
 		elif before:
 			index = parent.contents.index(before)
+			if current < index:
+				index -= 1
 		contents = parent.contents
 		#if this is a move to a new parent you can't remove the item
 		try:
