sw/source/uibase/dochdl/swdtflvr.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit dd1cedc98cca8c9ce1c6478f265d9c9447975cfd Author: Kohei Yoshida <[email protected]> Date: Wed Jun 18 18:55:52 2014 -0400 Send correct shell ID when pasting chart into writer. So that the number formats survive... Change-Id: I884c02be7ca350a99545203f9ce6d40e46937b75 diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 766cb50..9d33a70 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -1717,7 +1717,10 @@ bool SwTransferable::_PasteOLE( TransferableDataHelper& rData, SwWrtShell& rSh, nId = 0; if (nId) - xStrm = rData.GetInputStream(nId, OUString()); + { + SwDocShell* pDocSh = rSh.GetDoc()->GetDocShell(); + xStrm = rData.GetInputStream(nId, SfxObjectShell::CreateShellID(pDocSh)); + } if (xStrm.is()) { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
