From: Andrea Zagli Date: Mon, 2 Jul 2018 17:54:17 +0000 (+0200) Subject: Nelle funzioni OOO::[s|g]et_* se il parametro è NULL deve reimpostare il default. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=b5b02ee082ac0b8a3f9d8c2d91bd005fa811134c;p=solipa%2Flibsolipa Nelle funzioni OOO::[s|g]et_* se il parametro è NULL deve reimpostare il default. --- diff --git a/src/ooo.c b/src/ooo.c index 05fbdc6..56c9319 100644 --- a/src/ooo.c +++ b/src/ooo.c @@ -207,6 +207,7 @@ solipa_ooo_set_transient (SolipaOOO *ooo, GtkWindow *transient) if (!GTK_IS_WINDOW (transient)) { g_warning ("Il parametro transient deve essere un GtkWindow."); + return; } } @@ -242,6 +243,10 @@ solipa_ooo_set_path (SolipaOOO *ooo, const gchar *path) { priv->ooo_path = g_strdup (path); } + else + { + priv->ooo_path = g_strdup (""); + } } /** @@ -273,6 +278,10 @@ solipa_ooo_set_soffice (SolipaOOO *ooo, const gchar *soffice) { priv->ooo_soffice = g_strdup (soffice); } + else + { + priv->ooo_soffice = g_strdup ("soffice"); + } } /** @@ -331,6 +340,10 @@ solipa_ooo_set_version (SolipaOOO *ooo, const gchar *version) { priv->ooo_version = g_strdup (version); } + else + { + priv->ooo_version = g_strdup (""); + } } /**