summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}