--- /cvs/drupal/contributions/modules/potx/Attic/potx.module	2008/09/26 10:44:32	1.1.2.12.2.2.2.6
+++ /cvs/drupal/contributions/modules/potx/Attic/potx.module	2008/09/26 10:52:11	1.1.2.12.2.2.2.7
@@ -1,5 +1,5 @@
 <?php
-// $Id: potx.module,v 1.1.2.12.2.2.2.5 2008/09/26 10:32:45 goba Exp $
+// $Id: potx.module,v 1.1.2.12.2.2.2.6 2008/09/26 10:44:32 goba Exp $
 
 /**
  * @file
@@ -339,6 +339,9 @@
       $line = '';
     }
     else {
+      // potx numbers lines from 1 (as in text editors),
+      // coder from 0 (as in the array index I guess).
+      $lineno--;
       $line = $coder_args['#all_lines'][$lineno];
     }
     $rule['#warning'] = htmlspecialchars_decode($message, ENT_QUOTES);
