[anjuta] language-support-cpp-java: fix invalid read of paranthese-size setting



commit 8718cbe85c46bb05206811bd99f12ae54c7b0135
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Wed Nov 17 23:32:41 2010 +0100

    language-support-cpp-java: fix invalid read of paranthese-size setting
    
    https://bugzilla.gnome.org/show_bug.cgi?id=635121

 plugins/language-support-cpp-java/plugin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/plugin.c b/plugins/language-support-cpp-java/plugin.c
index 065a685..ddc3de6 100644
--- a/plugins/language-support-cpp-java/plugin.c
+++ b/plugins/language-support-cpp-java/plugin.c
@@ -1122,8 +1122,8 @@ get_line_indentation_base (CppJavaPlugin *plugin,
 				line_indent = get_line_indentation (editor, line_for_indent);
 				line_indent += extra_indent;
 
-				(*line_indent_spaces) += g_settings_get_boolean (plugin->settings,
-				                                                 PREF_INDENT_PARANTHESE_SIZE);
+				(*line_indent_spaces) += g_settings_get_int (plugin->settings,
+				                                             PREF_INDENT_PARANTHESE_SIZE);
 			}
 			
 			/* Although statement is incomplete at this point, we don't



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]