Comment 22 for bug 496793

Revision history for this message
Chris Bainbridge (chris-bainbridge) wrote :

The problem is that when text is copied the clipboard is cleared, but clipboard->set_text is not called to replace it if the selected text is empty. This results in the clipboard being NULL.

in ClipboardManagerImpl::copy

tools_isactive(desktop, TOOLS_TEXT) // is TRUE
_discardInternalClipboard(); // _clipboardSPDoc = NULL
_clipboard->set_text(selected_text); // only called when selected_text != ""
_onGet // assert _clipboardSPDoc != NULL fail

Fix attached.