diff options
author | Neil Hodgson <unknown> | 2015-01-22 13:30:30 +1100 |
---|---|---|
committer | Neil Hodgson <unknown> | 2015-01-22 13:30:30 +1100 |
commit | 84ae8545802555aba7c9e65eec39788f5653ffee (patch) | |
tree | f1d1f1afa9c3eec81ff696b64b58fd79b6f1e16e | |
parent | 2b780ca53f10ecf514fe962088dd64054c2f8f61 (diff) | |
download | scintilla-mirror-84ae8545802555aba7c9e65eec39788f5653ffee.tar.gz |
Fix incorrect call. Was supposed to avoid empty drop.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |