summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6045ac3)
raw | patch | inline | side by side (parent: 6045ac3)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 30 Apr 2009 21:38:31 +0000 (21:38 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 30 Apr 2009 21:38:31 +0000 (21:38 +0000) |
src/extension/internal/cairo-ps-out.cpp | patch | blob | history | |
src/extension/internal/cairo-renderer-pdf-out.cpp | patch | blob | history | |
src/main.cpp | patch | blob | history |
index 0ea0a051d832588cee39bdb0d00472343d230838..dff89c1ed0595ef9b74bcd85e76ad69ba4ce6762 100644 (file)
"<param name=\"areaDrawing\" gui-text=\"" N_("Export area is the drawing") "\" type=\"boolean\">true</param>\n"
"<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">false</param>\n"
"<param name=\"blurToBitmap\" gui-text=\"" N_("Rasterize filter effects") "\" type=\"boolean\">true</param>\n"
- "<param name=\"resolution\" gui-text=\"" N_("Preferred resolution (DPI) of bitmaps") "\" type=\"int\" min=\"72\" max=\"2400\">90</param>\n"
+ "<param name=\"resolution\" gui-text=\"" N_("Resolution for rasterization (dpi)") "\" type=\"int\" min=\"1\" max=\"10000\">90</param>\n"
"<param name=\"exportId\" gui-text=\"" N_("Limit export to the object with ID") "\" type=\"string\"></param>\n"
"<output>\n"
"<extension>.ps</extension>\n"
"<param name=\"areaDrawing\" gui-text=\"" N_("Export area is the drawing") "\" type=\"boolean\">true</param>\n"
"<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">false</param>\n"
"<param name=\"blurToBitmap\" gui-text=\"" N_("Rasterize filter effects") "\" type=\"boolean\">true</param>\n"
- "<param name=\"resolution\" gui-text=\"" N_("Preferred resolution (DPI) of bitmaps") "\" type=\"int\" min=\"72\" max=\"2400\">90</param>\n"
+ "<param name=\"resolution\" gui-text=\"" N_("Resolution for rasterization (dpi)") "\" type=\"int\" min=\"1\" max=\"10000\">90</param>\n"
"<param name=\"exportId\" gui-text=\"" N_("Limit export to the object with ID") "\" type=\"string\"></param>\n"
"<output>\n"
"<extension>.eps</extension>\n"
diff --git a/src/extension/internal/cairo-renderer-pdf-out.cpp b/src/extension/internal/cairo-renderer-pdf-out.cpp
index 3a4dde639844e9d2664403659a72186043659f04..804919e331fef925338e70ae50167fa68eb39303 100644 (file)
"</param>\n"
"<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">false</param>\n"
"<param name=\"blurToBitmap\" gui-text=\"" N_("Rasterize filter effects") "\" type=\"boolean\">true</param>\n"
- "<param name=\"resolution\" gui-text=\"" N_("Preferred resolution (DPI) of bitmaps") "\" type=\"int\" min=\"72\" max=\"2400\">90</param>\n"
+ "<param name=\"resolution\" gui-text=\"" N_("Resolution for rasterization (dpi)") "\" type=\"int\" min=\"1\" max=\"10000\">90</param>\n"
"<param name=\"areaDrawing\" gui-text=\"" N_("Export drawing, not page") "\" type=\"boolean\">false</param>\n"
"<param name=\"areaCanvas\" gui-text=\"" N_("Export canvas") "\" type=\"boolean\">false</param>\n"
"<param name=\"exportId\" gui-text=\"" N_("Limit export to the object with ID") "\" type=\"string\"></param>\n"
diff --git a/src/main.cpp b/src/main.cpp
index d6da78a9791473137af7190b91cd7e4613f22232..37dff7cdee19fde6b55cdbf881a845e8d70861ff 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1481,8 +1481,8 @@ static void do_export_ps_pdf(SPDocument* doc, gchar const* uri, char const* mime
gdouble dpi = 90.0;
if (sp_export_dpi) {
dpi = atof(sp_export_dpi);
- if ((dpi < 72) || (dpi > 2400.0)) {
- g_warning("DPI value %s out of range [72 - 2400]. Using 90 dpi instead.", sp_export_dpi);
+ if ((dpi < 1) || (dpi > 10000.0)) {
+ g_warning("DPI value %s out of range [1 - 10000]. Using 90 dpi instead.", sp_export_dpi);
dpi = 90;
}
}