summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/load-jpx.c2
-rw-r--r--source/fitz/output-pcl.c4
-rw-r--r--source/fitz/stext-paragraph.c6
-rw-r--r--source/fitz/svg-device.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c
index 51950d4c..7cd36474 100644
--- a/source/fitz/load-jpx.c
+++ b/source/fitz/load-jpx.c
@@ -43,7 +43,7 @@ static OPJ_SIZE_T fz_opj_stream_read(void * p_buffer, OPJ_SIZE_T p_nb_bytes, voi
if (len < 0)
len = 0;
if (len == 0)
- return (OPJ_SIZE_T)-1; /* End of file! */
+ return (OPJ_SIZE_T)-1; /* End of file! */
if ((OPJ_SIZE_T)len > p_nb_bytes)
len = p_nb_bytes;
memcpy(p_buffer, sb->data + sb->pos, len);
diff --git a/source/fitz/output-pcl.c b/source/fitz/output-pcl.c
index eae5dad2..0eeab8d3 100644
--- a/source/fitz/output-pcl.c
+++ b/source/fitz/output-pcl.c
@@ -22,7 +22,7 @@
#define PCL_ANY_SPACING \
(PCL3_SPACING | PCL4_SPACING | PCL5_SPACING)
-/* Individual printer properties. Any subset of these may be included. */
+/* Individual printer properties. Any subset of these may be included. */
#define PCL_MODE_2_COMPRESSION 8 /* compression mode 2 supported */
/* (PCL 4) */
#define PCL_MODE_3_COMPRESSION 16 /* compression modes 2 & 3 supported */
@@ -491,7 +491,7 @@ fz_output_pcl(fz_output *out, const fz_pixmap *pixmap, fz_pcl_options *pcl)
/*
* Mode 2 Row compression routine for the HP DeskJet & LaserJet IIp.
* Compresses data from row up to end_row, storing the result
- * starting at compressed. Returns the number of bytes stored.
+ * starting at compressed. Returns the number of bytes stored.
* Runs of K<=127 literal bytes are encoded as K-1 followed by
* the bytes; runs of 2<=K<=127 identical bytes are encoded as
* 257-K followed by the byte.
diff --git a/source/fitz/stext-paragraph.c b/source/fitz/stext-paragraph.c
index 5704f3cf..11925f77 100644
--- a/source/fitz/stext-paragraph.c
+++ b/source/fitz/stext-paragraph.c
@@ -1177,9 +1177,9 @@ force_paragraph:
/* Simple line region analysis:
* For each line:
- * form a list of 'start/stop' points (henceforth a 'region mask')
- * find the normalised baseline vector for the line.
- * Store the region mask and baseline vector.
+ * form a list of 'start/stop' points (henceforth a 'region mask')
+ * find the normalised baseline vector for the line.
+ * Store the region mask and baseline vector.
* Collate lines that have compatible region masks and identical
* baseline vectors.
* If the collated masks are column-like, then split into columns.
diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c
index c48c123d..f90557b5 100644
--- a/source/fitz/svg-device.c
+++ b/source/fitz/svg-device.c
@@ -326,7 +326,7 @@ svg_dev_text_as_paths_defs(fz_device *dev, fz_text *text, const fz_matrix *ctm)
{
int newmax = sdev->max_fonts * 2;
if (newmax == 0)
- newmax = 4;
+ newmax = 4;
sdev->fonts = fz_resize_array(ctx, sdev->fonts, newmax, sizeof(*sdev->fonts));
memset(&sdev->fonts[font_idx], 0, (newmax - font_idx) * sizeof(sdev->fonts[0]));
sdev->max_fonts = newmax;