Revision: 1344 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1344&view=re... Author: frlan Date: 2010-05-10 22:12:40 +0000 (Mon, 10 May 2010)
Log Message: ----------- GeanyLaTeX: Fix a minor warning because of shadowing a global variable
Modified Paths: -------------- trunk/geanylatex/src/latexenvironments.c
Modified: trunk/geanylatex/src/latexenvironments.c =================================================================== --- trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:08:39 UTC (rev 1343) +++ trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:12:40 UTC (rev 1344) @@ -95,7 +95,7 @@ gint indent, pos, len; GString *tmpstring = NULL; gchar *tmp = NULL; - const GeanyIndentPrefs *prefs = NULL; + static const GeanyIndentPrefs *indention_prefs = NULL;
pos = sci_get_current_position(doc->editor->sci); len = strlen(environment); @@ -131,10 +131,10 @@ tmp = g_strdup_printf("\n\end{%s}", environment); glatex_insert_string(tmp, FALSE);
- prefs = editor_get_indent_prefs(doc->editor); + indention_prefs = editor_get_indent_prefs(doc->editor); sci_set_line_indentation(doc->editor->sci, sci_get_current_line(doc->editor->sci), - indent + prefs->width); + indent + indention_prefs->width); sci_set_line_indentation(doc->editor->sci, sci_get_current_line(doc->editor->sci) + 1, indent);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org