aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-12-12 21:39:06 +0100
committerThomas White <taw@bitwiz.org.uk>2013-12-12 21:39:06 +0100
commit22288d6bd003576ada6b60917b6527837e2af108 (patch)
tree8e08bc8c4e16e6375f2cf1693f157290a6f7af63 /src/wrap.c
parent808850b7bf4e0efd8d6f9882121bdde215d710c3 (diff)
Highlight troublesome frames
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 9f88001..8c7b7cc 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -1033,6 +1033,7 @@ static void knuth_suboptimal_fit(struct wrap_line *boxes, double line_length,
if ( boxes->boxes[j].width > line_length ) {
fprintf(stderr, "ERROR: Box %i too long (%i %f)\n", j,
boxes->boxes[j].width, line_length);
+ fr->trouble = 1;
reject = 1;
}
}
@@ -1284,6 +1285,7 @@ int wrap_contents(struct frame *fr, PangoContext *pc,
fr->n_lines = 0;
fr->max_lines = 32;
fr->lines = NULL;
+ fr->trouble = 0;
alloc_lines(fr);
/* Split text into paragraphs */