gnumeric r16923 - trunk/src
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16923 - trunk/src
- Date: Fri, 24 Oct 2008 15:00:14 +0000 (UTC)
Author: mortenw
Date: Fri Oct 24 15:00:13 2008
New Revision: 16923
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16923&view=rev
Log:
revert escaped testing code
Modified:
trunk/src/xml-sax-read.c
Modified: trunk/src/xml-sax-read.c
==============================================================================
--- trunk/src/xml-sax-read.c (original)
+++ trunk/src/xml-sax-read.c Fri Oct 24 15:00:13 2008
@@ -1244,7 +1244,7 @@
g_return_if_fail (state->style_range_init == FALSE);
g_return_if_fail (state->style == NULL);
- state->style = (1 || state->version >= GNM_XML_V6 ||
+ state->style = (state->version >= GNM_XML_V6 ||
state->version <= GNM_XML_V2)
? gnm_style_new_default ()
: gnm_style_new ();
@@ -1332,25 +1332,6 @@
else
unknown_attr (xin, attrs);
}
-
- /*
- * Old versions of Gnumeric evidently do not set all the attributes.
- * http://bugzilla.gnome.org/show_bug.cgi?id=555933
- */
- if (!gnm_style_is_element_set (state->style, MSTYLE_COLOR_BACK)) {
- colour = style_color_white ();
- gnm_style_set_back_color (state->style, colour);
- }
-
- if (!gnm_style_is_element_set (state->style, MSTYLE_FONT_COLOR)) {
- colour = style_color_black ();
- gnm_style_set_font_color (state->style, colour);
- }
-
- if (!gnm_style_is_element_set (state->style, MSTYLE_COLOR_PATTERN)) {
- colour = style_color_black ();
- gnm_style_set_pattern_color (state->style, colour);
- }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]