diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 14:43:04 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 14:43:04 +0100 |
commit | d106091d6e5df26a83460ae484c31753b873368c (patch) | |
tree | 4312298dd2dd118c611c6ff5e0a144c7a0b0aa35 /render | |
parent | 68947c377ed358db310b32ee241db375e0b51de4 (diff) | |
download | netsurf-d106091d6e5df26a83460ae484c31753b873368c.tar.gz netsurf-d106091d6e5df26a83460ae484c31753b873368c.tar.bz2 |
Pass font plot style out to front end clipboard append function.
Diffstat (limited to 'render')
-rw-r--r-- | render/textinput.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/render/textinput.c b/render/textinput.c index 0e62d1e5b..3712690d4 100644 --- a/render/textinput.c +++ b/render/textinput.c @@ -554,8 +554,8 @@ static bool textinput_textarea_cut(struct content *c, struct box *next = box->next; if (box->type == BOX_BR) { - if (clipboard && - !gui_add_to_clipboard("\n", 1, false)) { + if (clipboard && !gui_add_to_clipboard("\n", 1, false, + plot_style_font)) { gui_commit_clipboard(); return false; } @@ -565,7 +565,7 @@ static bool textinput_textarea_cut(struct content *c, if (clipboard && !gui_add_to_clipboard(box->text + start_idx, box->length - start_idx, - SPACE_LEN(box))) { + SPACE_LEN(box), plot_style_font)) { gui_commit_clipboard(); return false; } @@ -593,7 +593,8 @@ static bool textinput_textarea_cut(struct content *c, /* and the last box */ if (box) { if (clipboard && !gui_add_to_clipboard(box->text + start_idx, - end_idx - start_idx, end_idx > box->length)) { + end_idx - start_idx, end_idx > box->length, + plot_style_font)) { success = false; } else { if (del) { |