From 0c12aa670b83b76241077dfb8bc21f40a55b1667 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 6 Feb 2014 14:11:43 -0500 Subject: fdo#74573: Skip deletion of destination area when 'skip empty' is on. Also, adjust handling of mix document aka paste functions with this change. When using paste function (add, subtract, etc), the behavior between the 'skip empty' flag on and off makes no difference. Let's set the flag to off when paste function is used. Change-Id: I67724ba923c9260b2c14464e4123b8445712dbaf --- sc/source/ui/view/viewfun3.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sc/source/ui/view') diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx index e501458c8685..fd16a6011e78 100644 --- a/sc/source/ui/view/viewfun3.cxx +++ b/sc/source/ui/view/viewfun3.cxx @@ -1188,8 +1188,9 @@ bool ScViewFunc::PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc, // ScDocument* pMixDoc = NULL; - if ( bSkipEmpty || nFunction ) + if (nFunction) { + bSkipEmpty = false; if ( nFlags & IDF_CONTENTS ) { pMixDoc = new ScDocument( SCDOCMODE_UNDO ); -- cgit