From 25f3f44253e1cd38223d1729c97feb0f6e9c03f7 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 29 Nov 2010 14:12:57 +0000 Subject: [PATCH] Mac OS X: display dragged text as cursor for Fl_Text_Display as well. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index bb628a3b6..a214dd910 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -70,6 +70,7 @@ extern "C" { #include #include #include +#include #include #include #include "flstring.h" @@ -3173,7 +3174,7 @@ int MACpreparedrag(void) int width, height; NSImage *image; - if ( dynamic_cast(w) != NULL) { + if ( dynamic_cast(w) != NULL || dynamic_cast(w) != NULL) { fl_selection_buffer[0][ fl_selection_length[0] ] = 0; image = imageFromText(fl_selection_buffer[0], &width, &height); } else {