diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-07-29 18:09:37 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-07-29 18:10:46 +0100 |
commit | 7874295626be8a3cbbb8fafc02f0dbda06f6d761 (patch) | |
tree | 2f6415298d7062912f82fe6835174ba7dad0274a /smoketest | |
parent | 136f3bb1795048adc3ca5ba28d44809e5b791701 (diff) |
liblo - add ability to select filter / format for saveas.
Change-Id: I866c6cb836407019973559051c854d24f9549d2a
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/libtest.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx index 390774913f73..4b9d1b3c884d 100644 --- a/smoketest/libtest.cxx +++ b/smoketest/libtest.cxx @@ -38,8 +38,11 @@ int main (int argc, char **argv) if( argc > 3 ) { - fprintf( stderr, "save document as '%s'\n", argv[3] ); - if ( !pDocument->saveAs( argv[ 3 ] ) ) + const char *pFilter = NULL; + if( argc > 4 ) + pFilter = argv[4]; + fprintf( stderr, "save document as '%s' (%s)\n", argv[3], pFilter ? pFilter : "<null>" ); + if( !pDocument->saveAs( argv[3], pFilter ) ) { char *pError = pOffice->getError(); fprintf( stderr, "failed to save document '%s'\n", pError); |