From 84ae8545802555aba7c9e65eec39788f5653ffee Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Thu, 22 Jan 2015 13:30:30 +1100 Subject: Fix incorrect call. Was supposed to avoid empty drop. --- gtk/ScintillaGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 4e740fbf2..b47a3b709 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1670,7 +1670,7 @@ void ScintillaGTK::ReceivedDrop(GtkSelectionData *selection_data) { drop.push_back('\0'); NotifyURIDropped(&drop[0]); } else if ((TypeOfGSD(selection_data) == GDK_TARGET_STRING) || (TypeOfGSD(selection_data) == atomUTF8)) { - if (TypeOfGSD(selection_data) > 0) { + if (LengthOfGSD(selection_data) > 0) { SelectionText selText; GetGtkSelectionText(selection_data, selText); DropAt(posDrop, selText.Data(), selText.Length(), false, selText.rectangular); -- cgit v1.2.3