From 07dc39f2d3b735aee36478994188a47694c957c4 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 16 Jul 1999 14:20:59 +0000 Subject: [PATCH] XIF is now being put into the transferable as double byte --- layout/base/nsPresShell.cpp | 3 ++- layout/html/base/src/nsPresShell.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index bce3ad1fd12d..2179a402f6b8 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -1631,7 +1631,8 @@ PresShell::DoCopy() trans->SetConverter(xifConverter); // Now add the XIF data to the transferable - trans->SetTransferData(&flavor, buffer.ToNewCString(), buffer.Length()); + trans->SetTransferData(&flavor, buffer.ToNewUnicode(), buffer.Length()); + //trans->SetTransferData(&flavor, buffer.ToNewCString(), buffer.Length()); // put the transferable on the clipboard clipboard->SetData(trans, nsnull); diff --git a/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index bce3ad1fd12d..2179a402f6b8 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/layout/html/base/src/nsPresShell.cpp @@ -1631,7 +1631,8 @@ PresShell::DoCopy() trans->SetConverter(xifConverter); // Now add the XIF data to the transferable - trans->SetTransferData(&flavor, buffer.ToNewCString(), buffer.Length()); + trans->SetTransferData(&flavor, buffer.ToNewUnicode(), buffer.Length()); + //trans->SetTransferData(&flavor, buffer.ToNewCString(), buffer.Length()); // put the transferable on the clipboard clipboard->SetData(trans, nsnull);