fix 'undo delete' which didn't put the deleted element back at
authorgc <gc>
Sat, 28 May 2005 18:33:20 +0000 (18:33 +0000)
committergc <gc>
Sat, 28 May 2005 18:33:20 +0000 (18:33 +0000)
its correct original position

bin/booh

index f46e0689ee87cb27cf65bbb9f3a13024c4aa2b7d..6cc7958b5ea3ab5f9023e73d10e31dbb768b1a4a 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -796,6 +796,7 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption)
                 end
             }
             
+            previous_pos = autotable.get_current_number(vbox)
             perform_delete.call
 
             if !after
@@ -816,7 +817,7 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption)
                                   perform_delete.call
                                   $notebook.set_page(1)
                               }
-                          }, autotable.get_current_number(vbox))
+                          }, previous_pos)
             end
         end
     }