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
This commit is contained in:
parent
0294bd1fa5
commit
25f3f44253
@ -70,6 +70,7 @@ extern "C" {
|
||||
#include <FL/Fl_Sys_Menu_Bar.H>
|
||||
#include <FL/Fl_Printer.H>
|
||||
#include <FL/Fl_Input_.H>
|
||||
#include <FL/Fl_Text_Display.H>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "flstring.h"
|
||||
@ -3173,7 +3174,7 @@ int MACpreparedrag(void)
|
||||
|
||||
int width, height;
|
||||
NSImage *image;
|
||||
if ( dynamic_cast<Fl_Input_*>(w) != NULL) {
|
||||
if ( dynamic_cast<Fl_Input_*>(w) != NULL || dynamic_cast<Fl_Text_Display*>(w) != NULL) {
|
||||
fl_selection_buffer[0][ fl_selection_length[0] ] = 0;
|
||||
image = imageFromText(fl_selection_buffer[0], &width, &height);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user