Code

remove text-to-path option for command line pdf export, it's not supported for now
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 1 Jul 2006 21:28:55 +0000 (21:28 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 1 Jul 2006 21:28:55 +0000 (21:28 +0000)
src/main.cpp

index 03aeebb407f5e82d8e93028474c0f506e9d2441d..c3d368bc536c69c1b8b93c622aefd15e0dded73f 100644 (file)
@@ -1053,24 +1053,7 @@ static void do_export_pdf(SPDocument* doc, gchar const* uri, char const* mime)
         return;
     }
 
-    bool old_text_to_path = false;
-
-    try {
-        old_text_to_path = (*i)->get_param_bool("textToPath");
-        (*i)->set_param_bool("textToPath", sp_export_text_to_path);
-    }
-    catch (...) {
-        g_warning ("Could not set export-text-to-path option for this export.");
-    }
-
     (*i)->save(doc, uri);
-
-    try {
-        (*i)->set_param_bool("textToPath", old_text_to_path);
-    }
-    catch (...) {
-
-    }
 }
 
 #ifdef WIN32