Fix [#36742] Pasting image into text editor causes freeze

Last fallback (XCLIB_XCOUT_FALLBACK_TEXT) was not checked, hence infinitly looping...
This commit is contained in:
Bastien Montagne 2013-09-16 18:14:04 +00:00
parent 31b84c9c28
commit 8b093329ff

@ -1729,11 +1729,15 @@ GHOST_TUns8 *GHOST_SystemX11::getClipboard(bool selection) const
continue;
}
else if (context == XCLIB_XCOUT_FALLBACK_COMP) {
/* compouned text faile, move to text. */
/* compouned text fail, move to text. */
context = XCLIB_XCOUT_NONE;
target = m_atom.TEXT;
continue;
}
else if (context == XCLIB_XCOUT_FALLBACK_TEXT) {
/* text fail, nothing else to try, break. */
context = XCLIB_XCOUT_NONE;
}
/* only continue if xcout() is doing something */
if (context == XCLIB_XCOUT_NONE)