diff options
Diffstat (limited to 'converter')
-rw-r--r-- | converter/other/pamtosvg/pxl-outline.c | 2 | ||||
-rw-r--r-- | converter/pbm/pbmtomacp.c | 1 | ||||
-rw-r--r-- | converter/pgm/sbigtopgm.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/converter/other/pamtosvg/pxl-outline.c b/converter/other/pamtosvg/pxl-outline.c index 20b088c7..a55a8b95 100644 --- a/converter/other/pamtosvg/pxl-outline.c +++ b/converter/other/pamtosvg/pxl-outline.c @@ -268,7 +268,7 @@ find_one_centerline(bitmap_type const bitmap, */ { pm_pixelcoord pos; - pos.col = originalCol; pos.row = bitmap.height - originalRow - 1; + pos.col = original_col; pos.row = bitmap.height - original_row - 1; LOG2(" (%d,%d)", pos.col, pos.row); append_outline_pixel(&outline, pos); } diff --git a/converter/pbm/pbmtomacp.c b/converter/pbm/pbmtomacp.c index 9dc700e6..600cc407 100644 --- a/converter/pbm/pbmtomacp.c +++ b/converter/pbm/pbmtomacp.c @@ -12,6 +12,7 @@ #include <string.h> +#include "pm_c_util.h" #include "pbm.h" #include "macp.h" diff --git a/converter/pgm/sbigtopgm.c b/converter/pgm/sbigtopgm.c index e57e26e8..c6785152 100644 --- a/converter/pgm/sbigtopgm.c +++ b/converter/pgm/sbigtopgm.c @@ -123,7 +123,7 @@ int main(argc, argv) pm_error("malformed SBIG file header at character %d", hdr - header); } *cp = 0; - if (strncmp(hdr, "ST-", 3) == 0) || + if (strncmp(hdr, "ST-", 3) == 0 || (hdr == &hdr[0] && strstr(hdr,"Image") != NULL)) { char *ep = strchr(hdr + 3, ' '); |