From 3ea6fa1fd995371e8b160e00ea4859256edc9568 Mon Sep 17 00:00:00 2001 From: François Revel Date: Sat, 2 Jan 2010 02:54:30 +0000 Subject: Fix getting the box style to a BFont. for the clipboard. svn path=/trunk/netsurf/; revision=9778 --- beos/beos_window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp index 9214b75f8..8dd16e2c6 100644 --- a/beos/beos_window.cpp +++ b/beos/beos_window.cpp @@ -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); -- cgit v1.2.3