about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pamtosvg/pxl-outline.c2
-rw-r--r--doc/HISTORY4
2 files changed, 5 insertions, 1 deletions
diff --git a/converter/other/pamtosvg/pxl-outline.c b/converter/other/pamtosvg/pxl-outline.c
index 0dda3cc3..a1fa5299 100644
--- a/converter/other/pamtosvg/pxl-outline.c
+++ b/converter/other/pamtosvg/pxl-outline.c
@@ -269,7 +269,7 @@ findOneCenterline(bitmap_type    const bitmap,
     */
     {
         pm_pixelcoord pos;
-        pos.col = col; pos.row = bitmap.height - row - 1;
+        pos.col = originalCol; pos.row = bitmap.height - originalRow - 1;
         LOG2(" (%d,%d)", pos.col, pos.row);
         append_outline_pixel(&outline, pos);
     }
diff --git a/doc/HISTORY b/doc/HISTORY
index 818b6ac4..ec0fbb64 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -22,6 +22,10 @@ not yet  BJH  Release 10.70.00
               nearly always.  Always broken (These options were new in
               Netpbm 10.32 (February 2006)).
 
+              pamtosvg: fix use of unset variable; probably results in a
+              crash.  Always present (pamtosvg was new in Netpbm 10.33 (March
+              2006).
+
               cameratopam: fix bug: variable used before set; unknown impact.
               Introduced in Netpbm 10.66 (March 2014).