diff options
| author | Manolo Gouy <Manolo> | 2015-01-28 17:05:29 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-01-28 17:05:29 +0000 |
| commit | 64ffd414d6bbe05be33e7a6a1cf6028d5d883be6 (patch) | |
| tree | 70bd2423eb64ab3ce3d4cd819d0532733c81b203 /src/Fl_Text_Display.cxx | |
| parent | b8b89178da6a1e0b6a555e9c463fc8c8bb0f8bd9 (diff) | |
Stop using dynamic_cast when performing text drag (Mac OS only).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 613481da0..7159a036d 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -3863,7 +3863,11 @@ int Fl_Text_Display::handle(int event) { if (dragType==DRAG_START_DND) { if (!Fl::event_is_click() && Fl::dnd_text_ops()) { const char* copy = buffer()->selection_text(); +#ifdef __APPLE__ + Fl_X::dnd(1); +#else Fl::dnd(); +#endif free((void*)copy); } return 1; |
