goffice r2297 - in trunk: . goffice/graph
- From: emmanuel svn gnome org
- To: svn-commits-list gnome org
- Subject: goffice r2297 - in trunk: . goffice/graph
- Date: Wed, 24 Dec 2008 17:25:13 +0000 (UTC)
Author: emmanuel
Date: Wed Dec 24 17:25:13 2008
New Revision: 2297
URL: http://svn.gnome.org/viewvc/goffice?rev=2297&view=rev
Log:
Avoid a warning when equation->itex string is NULL.
goffice/graph/gog-equation.c (gog_equation_populate_editor): here.
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 Wed Dec 24 17:25:13 2008
@@ -93,7 +93,7 @@
widget = glade_xml_get_widget (gui, "equation_text");
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
- gtk_text_buffer_set_text (GTK_TEXT_BUFFER (buffer), equation->itex, -1);
+ gtk_text_buffer_set_text (GTK_TEXT_BUFFER (buffer), equation->itex != NULL ? equation->itex: "", -1);
g_signal_connect (G_OBJECT (buffer), "changed", G_CALLBACK (cb_equation_buffer_changed), obj);
widget = glade_xml_get_widget (gui, "compact_mode_check");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]