[geany/geany-plugins] 95c7e6: geanylatex: Fix some sanity checks

Matthew Brush git-noreply at xxxxx
Tue Oct 14 16:08:08 UTC 2014


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 14 Oct 2014 16:08:08 UTC
Commit:      95c7e6feab7747697c5bb4afb73af3a0c4dbec4f
             https://github.com/geany/geany-plugins/commit/95c7e6feab7747697c5bb4afb73af3a0c4dbec4f

Log Message:
-----------
geanylatex: Fix some sanity checks


Modified Paths:
--------------
    geanylatex/src/latexkeybindings.c

Modified: geanylatex/src/latexkeybindings.c
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -23,21 +23,21 @@
 
 void glatex_kblabel_insert(G_GNUC_UNUSED guint key_id)
 {
-	g_return_if_fail(document_get_current != NULL);
+	g_return_if_fail(document_get_current() != NULL);
 	glatex_insert_label_activated(NULL, NULL);
 }
 
 
 void glatex_kbref_insert(G_GNUC_UNUSED guint key_id)
 {
-	g_return_if_fail(document_get_current != NULL);
+	g_return_if_fail(document_get_current() != NULL);
 	glatex_insert_ref_activated(NULL, NULL);
 }
 
 
 void glatex_kbref_insert_environment(G_GNUC_UNUSED guint key_id)
 {
-	g_return_if_fail(document_get_current != NULL);
+	g_return_if_fail(document_get_current() != NULL);
 	glatex_insert_environment_dialog(NULL, NULL);
 }
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list