[Libreoffice-commits] .: sc/source
Noel Power
noelp at kemper.freedesktop.org
Fri Jul 29 03:43:58 PDT 2011
sc/source/ui/vba/vbarange.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 80583680685f571124ece05e008e1236295ab49a
Author: Noel Power <noel.power at novell.com>
Date: Fri Jul 29 11:42:48 2011 +0100
tweak fix for bnc#707486 ( ensure multi-area processed for simple copy only )
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 5ecf30b..388a107 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;
More information about the Libreoffice-commits
mailing list