[librsvg] Add xml and recording surface output to rsvg-convert



commit e1137e53f821c02ab4d9cab85e2a8bf684579f54
Author: Christian Persch <chpe gnome org>
Date:   Wed Oct 13 13:00:53 2010 +0200

    Add xml and recording surface output to rsvg-convert
    
    This is useful mainly for debugging purposes.

 rsvg-convert.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-convert.c b/rsvg-convert.c
index 26395d8..bd89d33 100644
--- a/rsvg-convert.c
+++ b/rsvg-convert.c
@@ -343,8 +343,12 @@ main (int argc, char **argv)
             cairo_device_destroy (device);
         }
 #endif
-        else
+        else if (!strcmp (format, "xml"))
+          ;
+        else if (!strcmp (format, "svg") || !strcmp (format, "pdf") || !strcmp (format, "ps"))
             cairo_show_page (cr);
+        else
+          g_assert_not_reached ();
 
         g_object_unref (rsvg);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]