aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <unknown>2015-01-22 13:30:30 +1100
committerNeil Hodgson <unknown>2015-01-22 13:30:30 +1100
commit84ae8545802555aba7c9e65eec39788f5653ffee (patch)
treef1d1f1afa9c3eec81ff696b64b58fd79b6f1e16e
parent2b780ca53f10ecf514fe962088dd64054c2f8f61 (diff)
downloadscintilla-mirror-84ae8545802555aba7c9e65eec39788f5653ffee.tar.gz
Fix incorrect call. Was supposed to avoid empty drop.
-rw-r--r--gtk/ScintillaGTK.cxx2
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);