[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Fri Jan 23 08:48:35 PST 2015


 sc/source/ui/app/transobj.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0efbd9931ea854cf71c4c54ca3f3d55d6db1fa13
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 23 16:45:51 2015 +0000

    Resolves: fdo#75565 reduce block on pasting rtf like we do for html
    
    Change-Id: I74a9748a2e4981dc5d1677f06db7eceed9e4b108

diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 1d7f57c..f76f3b9 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -287,8 +287,9 @@ bool ScTransferObj::GetData( const datatransfer::DataFlavor& rFlavor, const OUSt
 
             bool bIncludeFiltered = pDoc->IsCutMode() || bUsedForLink;
 
+            bool bReduceBlockFormat = nFormat == SOT_FORMATSTR_ID_HTML || nFormat == SOT_FORMAT_RTF;
             ScRange aReducedBlock = aBlock;
-            if ( nFormat == SOT_FORMATSTR_ID_HTML && (aBlock.aEnd.Col() == MAXCOL || aBlock.aEnd.Row() == MAXROW) && aBlock.aStart.Tab() == aBlock.aEnd.Tab() )
+            if (bReduceBlockFormat && (aBlock.aEnd.Col() == MAXCOL || aBlock.aEnd.Row() == MAXROW) && aBlock.aStart.Tab() == aBlock.aEnd.Tab())
             {
                 bool bShrunk = false;
                 //shrink the area to allow pasting to external applications


More information about the Libreoffice-commits mailing list