Branch: refs/heads/generell/replace_NZV Author: Frank Lanitz frank@frank.uvena.de Committer: Frank Lanitz frank@frank.uvena.de Date: Thu, 15 Aug 2013 07:59:56 UTC Commit: 9fb601abec5532dc375202ac710c12fd59f42964 https://github.com/geany/geany-plugins/commit/9fb601abec5532dc375202ac710c12...
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); } @@ -1595,7 +1595,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) @@ -1629,7 +1629,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).