[cairo-commit] src/cairo-pdf-operators.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Thu Mar 2 08:46:24 UTC 2017


 src/cairo-pdf-operators.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 1a307123af14cfa50a0c35819cfaee79f0ade1ba
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Thu Mar 2 19:14:04 2017 +1030

    pdf-operators: fix bug in line wrapping
    
    patch by jmmorlan at sonic.net
    
    https://bugs.freedesktop.org/show_bug.cgi?id=100029

diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index 99a8dc8..b4ac253 100644
--- a/src/cairo-pdf-operators.c
+++ b/src/cairo-pdf-operators.c
@@ -319,7 +319,8 @@ _word_wrap_stream_write (cairo_output_stream_t  *base,
 	    if (*data == '\n' || stream->column >= stream->max_column) {
 		_cairo_output_stream_printf (stream->output, "\n");
 		stream->column = 0;
-	    } else if (*data == '<') {
+	    }
+	    if (*data == '<') {
 		stream->state = WRAP_STATE_HEXSTRING;
 	    } else if (*data == '(') {
 		stream->state = WRAP_STATE_STRING;


More information about the cairo-commit mailing list