mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
Fix getting the box style to a BFont. for the clipboard.
svn path=/trunk/netsurf/; revision=9778
This commit is contained in:
parent
6c95f7b967
commit
3ea6fa1fd9
@ -26,6 +26,7 @@ extern "C" {
|
||||
#include "desktop/options.h"
|
||||
#include "desktop/selection.h"
|
||||
#include "desktop/textinput.h"
|
||||
#include "render/font.h"
|
||||
#include "utils/log.h"
|
||||
#include "utils/utf8.h"
|
||||
#include "utils/utils.h"
|
||||
@ -1863,7 +1864,9 @@ static bool copy_handler(const char *text, size_t length, struct box *box,
|
||||
if (box && box->style) {
|
||||
text_run *run = new text_run;
|
||||
BFont font;
|
||||
nsbeos_style_to_font(font, box->style);
|
||||
plot_font_style_t style;
|
||||
font_plot_style_from_css(box->style, &style);
|
||||
nsbeos_style_to_font(font, &style);
|
||||
run->offset = current_selection.Length();
|
||||
run->font = font;
|
||||
run->color = nsbeos_rgb_colour(box->style->color);
|
||||
|
Loading…
Reference in New Issue
Block a user