Bugzilla Bug 80181 mTransferable= (nsITransferable *) 0x0. Can't paste in xlib build.

r=dr sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@95114 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com 2001-05-16 07:27:25 +00:00
parent 73f506738e
commit fd90b3335f

View File

@ -309,7 +309,9 @@ NS_IMETHODIMP nsClipboard::GetData(nsITransferable *aTransferable,
// Get which transferable we should use.
NS_IF_RELEASE(mTransferable);
mTransferable = GetTransferable(aWhichClipboard);
NS_IF_ADDREF(mTransferable);
NS_ASSERTION(!mTransferable,"mTransferable is null!! see bug 80181");
if (!mTransferable) return NS_ERROR_FAILURE;
NS_ADDREF(mTransferable);
// If we currently own the selection, we will handle the paste
// internally, otherwise get the data from the X server