diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-10-30 18:07:47 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-10-30 18:07:47 +0100 |
commit | 91f680b08931aaa43df551d18fdd4b6638fbac7b (patch) | |
tree | 250c45ab354dd55a67f8a7fe0507a80127f0e1b7 /src/frame.c | |
parent | 19f20ab06476f93977d1c7130b76f7c31d198936 (diff) |
Fix style warnings from static analyser
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/frame.c b/src/frame.c index cf6bd7f..2f533ff 100644 --- a/src/frame.c +++ b/src/frame.c @@ -78,12 +78,6 @@ struct _paragraph }; -PangoLayout *paragraph_layout(Paragraph *para) -{ - return para->layout; -} - - /* Returns the height of the paragraph including all spacing, padding etc */ double paragraph_height(Paragraph *para) { @@ -1502,11 +1496,12 @@ void delete_text_from_frame(struct frame *fr, struct edit_pos p1, struct edit_po void show_para(Paragraph *p) { - int i; printf(_("Paragraph %p\n"), p); if ( p->type == PARA_TYPE_TEXT ) { + int i; + printf(_("%i runs:\n"), p->n_runs); for ( i=0; i<p->n_runs; i++ ) { printf(_(" Run %2i: SCBlock %p %s '%s'\n"), |