Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: Frank Lanitz frank@frank.uvena.de Date: Sun, 23 Mar 2014 10:16:21 UTC Commit: 5064cc9442e968caed57880259a6732562b7d24b https://github.com/geany/geany-plugins/commit/5064cc9442e968caed57880259a673...
Log Message: ----------- GeanyLaTeX: Replace NZV-makro with EMPTY-makro
Modified Paths: -------------- geanylatex/src/geanylatex.c geanylatex/src/latexutils.c
Modified: geanylatex/src/geanylatex.c 10 files changed, 5 insertions(+), 5 deletions(-) =================================================================== @@ -1447,7 +1447,7 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem, break; } } - if (classoptions != NULL && NZV(orientation_string)) + if (classoptions != NULL && !EMPTY(orientation_string)) { classoptions = g_strconcat(classoptions, ",", orientation_string, NULL); g_free(orientation_string); @@ -1465,11 +1465,11 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem, classoptions = g_strconcat(draft, NULL); g_free(draft); } - if (classoptions != NULL && NZV(fontsize)) + if (classoptions != NULL && !EMPTY(fontsize)) { classoptions = g_strconcat(classoptions, ",", fontsize, NULL); } - else if (classoptions == NULL && NZV(fontsize)) + else if (classoptions == NULL && !EMPTY(fontsize)) { classoptions = g_strdup(fontsize); } @@ -1594,7 +1594,7 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem, break; } } - if (NZV(author)) + if (!EMPTY(author)) { gchar* author_string = NULL; if (documentclass_int == 3) @@ -1628,7 +1628,7 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem, g_free(author_string); }
- if (NZV(date)) + if (!EMPTY(date)) { gchar *date_string = NULL; date_string = g_strconcat("\date{", date, "}\n", NULL);
Modified: geanylatex/src/latexutils.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -64,7 +64,7 @@ void glatex_usepackage(const gchar *pkg, const gchar *options)
pos = sci_get_position_from_line(doc->editor->sci, i); /* Building up package string and inserting it */ - if (NZV(options)) + if (!EMPTY(options)) { packagestring = g_strconcat("\usepackage[", options, "]{", pkg, "}\n", NULL);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org