summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Engel <p637777@aol.com>2014-03-24 20:29:00 +0000
committerIgnacio Casal Quinteiro <icq@gnome.org>2015-10-31 20:24:35 +0100
commite1facb1e7e8a0568774a1630c1a8621679635ef5 (patch)
tree98a12321d1e852086cdc9eb0897e1719f25cf405
parent15a8885758a5e6b4d7d03d7cacd89a212bbf9847 (diff)
downloadlibcroco-e1facb1e7e8a0568774a1630c1a8621679635ef5.tar.gz
Fix typos
https://bugzilla.gnome.org/show_bug.cgi?id=726993
-rw-r--r--src/cr-style.c2
-rw-r--r--src/cr-tknzr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cr-style.c b/src/cr-style.c
index 3233415..50e6006 100644
--- a/src/cr-style.c
+++ b/src/cr-style.c
@@ -1676,7 +1676,7 @@ set_prop_white_space_from_value (CRStyle * a_style, CRTerm * a_value)
a_style->white_space = WHITE_SPACE_NORMAL;
} else if (!strcmp (a_value->content.str->stryng->str,
"pre")) {
- a_style->font_weight = WHITE_SPACE_PRE;
+ a_style->white_space = WHITE_SPACE_PRE;
} else if (!strcmp (a_value->content.str->stryng->str,
"nowrap")) {
a_style->white_space = WHITE_SPACE_NOWRAP;
diff --git a/src/cr-tknzr.c b/src/cr-tknzr.c
index 6fc04a6..2d507f2 100644
--- a/src/cr-tknzr.c
+++ b/src/cr-tknzr.c
@@ -2381,7 +2381,7 @@ cr_tknzr_get_next_token (CRTknzr * a_this, CRToken ** a_tk)
next_bytes[0] = BYTE (input, 1, NULL);
next_bytes[1] = BYTE (input, 2, NULL);
next_bytes[2] = BYTE (input, 3, NULL);
- next_bytes[3] = BYTE (input, 3, NULL);
+ next_bytes[3] = BYTE (input, 4, NULL);
if (next_bytes[0] == 'e'
&& next_bytes[1] == 'm') {