goffice r2304 - in trunk: . goffice/graph
- From: emmanuel svn gnome org
- To: svn-commits-list gnome org
- Subject: goffice r2304 - in trunk: . goffice/graph
- Date: Thu, 8 Jan 2009 08:35:55 +0000 (UTC)
Author: emmanuel
Date: Thu Jan 8 08:35:55 2009
New Revision: 2304
URL: http://svn.gnome.org/viewvc/goffice?rev=2304&view=rev
Log:
2008-01-07 Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
* goffice/graph/gog-equation.c (gog_equation_update): don't crash when
on equation string == "{".
Modified:
trunk/ChangeLog
trunk/goffice/graph/gog-equation.c
Modified: trunk/goffice/graph/gog-equation.c
==============================================================================
--- trunk/goffice/graph/gog-equation.c (original)
+++ trunk/goffice/graph/gog-equation.c Thu Jan 8 08:35:55 2009
@@ -192,9 +192,9 @@
if (*itex_iter != ' ') {
is_blank = FALSE;
- if (*itex_iter == '{' && *prev_char != '\\')
+ if (*itex_iter == '{' && (prev_char == NULL || *prev_char != '\\'))
n_unclosed_braces++;
- else if (*itex_iter == '}' && *prev_char != '\\')
+ else if (*itex_iter == '}' && (prev_char != NULL || *prev_char != '\\'))
n_unclosed_braces--;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]