summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2010-08-14 16:08:56 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2010-08-14 16:08:56 +0000
commit8e849785620131952e97f7655e8708aa0cae8fd2 (patch)
tree7d1d98a43a53bac30c56237950bf8ef4c7999761
parent561cb543cab3111078e0d49fc35d81650277facb (diff)
downloadnetsurf-8e849785620131952e97f7655e8708aa0cae8fd2.tar.gz
netsurf-8e849785620131952e97f7655e8708aa0cae8fd2.tar.bz2
Fix colors on copying to clipboard.
svn path=/trunk/netsurf/; revision=10704
-rw-r--r--beos/beos_window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp
index c45b221f6..998129a59 100644
--- a/beos/beos_window.cpp
+++ b/beos/beos_window.cpp
@@ -22,6 +22,7 @@
#include <assert.h>
extern "C" {
#include "content/urldb.h"
+#include "css/utils.h"
#include "desktop/browser.h"
#include "desktop/mouse.h"
#include "desktop/options.h"
@@ -1880,7 +1881,7 @@ static bool copy_handler(const char *text, size_t length, struct box *box,
nsbeos_style_to_font(font, &style);
run->offset = current_selection.Length();
run->font = font;
- run->color = nsbeos_rgb_colour(box->style->color);
+ run->color = nsbeos_rgb_colour(nscss_color_to_ns(box->style->color));
current_selection_textruns.AddItem(run);
space = box->space;
}