diff --git a/src/gtk/clipbrd.cpp b/src/gtk/clipbrd.cpp index 213357b8ff..3eb5d9b886 100644 --- a/src/gtk/clipbrd.cpp +++ b/src/gtk/clipbrd.cpp @@ -264,7 +264,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), GtkSelectionData *selection_data if (data_object->GetFormat().GetAtom() != selection_data->target) { node = node->Next(); - break; + continue; } switch (data_object->GetFormat().GetType()) diff --git a/src/gtk1/clipbrd.cpp b/src/gtk1/clipbrd.cpp index 213357b8ff..3eb5d9b886 100644 --- a/src/gtk1/clipbrd.cpp +++ b/src/gtk1/clipbrd.cpp @@ -264,7 +264,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), GtkSelectionData *selection_data if (data_object->GetFormat().GetAtom() != selection_data->target) { node = node->Next(); - break; + continue; } switch (data_object->GetFormat().GetType())