? translation_remove_from_set.patch
Index: modules/translation/translation.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/translation/translation.module,v
retrieving revision 1.30
diff -u -p -r1.30 translation.module
--- modules/translation/translation.module	6 Oct 2008 12:55:55 -0000	1.30
+++ modules/translation/translation.module	8 Oct 2008 00:24:04 -0000
@@ -255,8 +255,8 @@ function translation_nodeapi_delete(&$no
  */
 function translation_remove_from_set($node) {
   if (isset($node->tnid)) {
-    if (db_result(db_query('SELECT COUNT(*) FROM {node} WHERE tnid = %d', $node->tnid)) <= 2) {
-      // There would only be one node left in the set: remove the set altogether.
+    if (db_result(db_query('SELECT COUNT(*) FROM {node} WHERE tnid = %d', $node->tnid)) == 1) {
+      // There is only one node left in the set: remove the set altogether.
       db_query('UPDATE {node} SET tnid = 0, translate = 0 WHERE tnid = %d', $node->tnid);
     }
     else {
