summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-07-29 11:42:48 +0100
committerNoel Power <noel.power@novell.com>2011-07-29 11:43:52 +0100
commit80583680685f571124ece05e008e1236295ab49a (patch)
treecb7161969e20e2ea866b2e9f509b72e94480b9b4
parent44ba93cbad6ef271d32991cac40988763b99dee2 (diff)
tweak fix for bnc#707486 ( ensure multi-area processed for simple copy only )
-rw-r--r--sc/source/ui/vba/vbarange.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 5ecf30b23..388a1070f 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -2598,6 +2598,9 @@ ScVbaRange::Copy(const ::uno::Any& Destination) throw (uno::RuntimeException)
{
if ( Destination.hasValue() )
{
+ // #TODO support ( if necessary ) multi-area range in this scenario
+ if ( m_Areas->getCount() > 1 )
+ throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("!!! That command cannot be used on multiple selections" ) ), uno::Reference< uno::XInterface >() );
uno::Reference< excel::XRange > xRange( Destination, uno::UNO_QUERY_THROW );
uno::Any aRange = xRange->getCellRange();
uno::Reference< table::XCellRange > xCellRange;