diff options
author | Thomas White <taw@bitwiz.me.uk> | 2020-01-06 23:26:00 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2020-01-06 23:26:00 +0100 |
commit | be129f071c3d7b400c5b8a4ed145b6011123819f (patch) | |
tree | 2b50f921b480f05963b58d07cafef338accb9830 /libstorycode/narrative_render_cairo.c | |
parent | 9c45f71e39f0c0ded10d4c837dcaece44dcd379e (diff) |
Fixes for copy, add text paste and hooks for SC paste
Diffstat (limited to 'libstorycode/narrative_render_cairo.c')
-rw-r--r-- | libstorycode/narrative_render_cairo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstorycode/narrative_render_cairo.c b/libstorycode/narrative_render_cairo.c index e38d43f..663c9e2 100644 --- a/libstorycode/narrative_render_cairo.c +++ b/libstorycode/narrative_render_cairo.c @@ -207,7 +207,7 @@ static int positions_equal(struct edit_pos a, struct edit_pos b) } -static void sort_positions(struct edit_pos *a, struct edit_pos *b) +void narrative_sort_positions(struct edit_pos *a, struct edit_pos *b) { if ( a->para > b->para ) { size_t tpos; @@ -256,7 +256,7 @@ int narrative_wrap_range(Narrative *n, Stylesheet *stylesheet, PangoLanguage *la n->w = w; w -= n->space_l + n->space_r; - sort_positions(&sel_start, &sel_end); + narrative_sort_positions(&sel_start, &sel_end); if ( min < 0 ) min = 0; if ( max >= n->n_items ) max = n->n_items-1; |