fixed poly2bitmap parameter switch
authorkramm <kramm>
Sun, 13 Jan 2008 09:39:11 +0000 (09:39 +0000)
committerkramm <kramm>
Sun, 13 Jan 2008 09:39:11 +0000 (09:39 +0000)
lib/pdf/pdf.cc

index ea7b3f6..285e01b 100644 (file)
@@ -332,7 +332,7 @@ static void pdf_set_parameter(gfxsource_t*src, const char*name, const char*value
        sprintf(buf, "%f", (double)ppm_dpi/(double)zoom);
        storeDeviceParameter("ppmsubpixels", buf);
     } else if(!strcmp(name, "poly2bitmap")) {
-        i->config_bitmap_optimizing = 1;
+        i->config_bitmap_optimizing = atoi(value);
     } else if(!strcmp(name, "multiply")) {
         multiply = atoi(value);
     } else if(!strcmp(name, "help")) {