summaryrefslogtreecommitdiff
path: root/beos/beos_window.cpp
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2010-01-02 02:54:30 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2010-01-02 02:54:30 +0000
commit3ea6fa1fd995371e8b160e00ea4859256edc9568 (patch)
tree0991b7dcca153415e9cc1fe21417ecbb18226a54 /beos/beos_window.cpp
parent6c95f7b967c38bf4e060c761b0f95e137d45e0ef (diff)
downloadnetsurf-3ea6fa1fd995371e8b160e00ea4859256edc9568.tar.gz
netsurf-3ea6fa1fd995371e8b160e00ea4859256edc9568.tar.bz2
Fix getting the box style to a BFont. for the clipboard.
svn path=/trunk/netsurf/; revision=9778
Diffstat (limited to 'beos/beos_window.cpp')
-rw-r--r--beos/beos_window.cpp5
1 files changed, 4 insertions, 1 deletions
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);