diff options
Diffstat (limited to 'media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch')
-rw-r--r-- | media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch b/media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch deleted file mode 100644 index 8997261..0000000 --- a/media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch +++ /dev/null @@ -1,56 +0,0 @@ -Index: src/extension/internal/cairo-renderer-pdf-out.cpp -=================================================================== ---- src/extension/internal/cairo-renderer-pdf-out.cpp (revision 20479) -+++ src/extension/internal/cairo-renderer-pdf-out.cpp (working copy) -@@ -153,7 +153,7 @@ - g_warning("Parameter <blurToBitmap> might not exist"); - } - -- int new_bitmapResolution = 72; -+ int new_bitmapResolution = 150; - try { - new_bitmapResolution = mod->get_param_int("resolution"); - } -Index: src/extension/internal/cairo-ps-out.cpp -=================================================================== ---- src/extension/internal/cairo-ps-out.cpp (revision 20479) -+++ src/extension/internal/cairo-ps-out.cpp (working copy) -@@ -151,7 +151,7 @@ - new_blurToBitmap = mod->get_param_bool("blurToBitmap"); - } catch(...) {} - -- int new_bitmapResolution = 72; -+ int new_bitmapResolution = 150; - try { - new_bitmapResolution = mod->get_param_int("resolution"); - } catch(...) {} -@@ -215,7 +215,7 @@ - new_blurToBitmap = mod->get_param_bool("blurToBitmap"); - } catch(...) {} - -- int new_bitmapResolution = 72; -+ int new_bitmapResolution = 150; - try { - new_bitmapResolution = mod->get_param_int("resolution"); - } catch(...) {} -Index: src/main.cpp -=================================================================== ---- src/main.cpp (revision 20479) -+++ src/main.cpp (working copy) -@@ -1398,6 +1398,16 @@ - (*i)->set_param_bool("blurToBitmap", TRUE); - } - -+ if (sp_export_dpi) { -+ int dpi = atoi(sp_export_dpi); -+ if ((dpi < 1) || (dpi > 10000)) { -+ g_warning("DPI value %s out of range [1 - 10000]. Nothing exported.", sp_export_dpi); -+ return; -+ } -+ g_print("DPI: %d\n", dpi); -+ (*i)->set_param_int("resolution", dpi); -+ } -+ - (*i)->save(doc, uri); - } - |