]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Nelle funzioni OOO::[s|g]et_* se il parametro รจ NULL deve reimpostare il default.
authorAndrea Zagli <azagli@libero.it>
Mon, 2 Jul 2018 17:54:17 +0000 (19:54 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 2 Jul 2018 17:54:17 +0000 (19:54 +0200)
src/ooo.c

index 05fbdc64cb42ce3c621be1243ee938c55fb2113a..56c93194b3d66cae2e5d2fb97d023f1cce985b4e 100644 (file)
--- 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 ("");
+               }
 }
 
 /**