From 1d38cb365543924f9c50014e6b2227e77de1d0c9 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 13 Jun 2014 11:12:50 -0400 Subject: fdo#71076, fdo#71767: Preserve number formats when charts are copied. Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a --- starmath/source/view.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index f7617d4ffa0c..1de12e66c507 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1570,8 +1570,10 @@ void SmViewShell::Execute(SfxRequest& rReq) if( aData.GetTransferable().is() && ( aData.HasFormat( nId = SOT_FORMATSTR_ID_EMBEDDED_OBJ ) || (aData.HasFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ) && - aData.HasFormat( nId = SOT_FORMATSTR_ID_EMBED_SOURCE ))) && - aData.GetInputStream( nId, xStrm ) && xStrm.is() ) + aData.HasFormat( nId = SOT_FORMATSTR_ID_EMBED_SOURCE )))) + xStrm = aData.GetInputStream(nId, OUString()); + + if (xStrm.is()) { try { -- cgit