summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2010-08-04 09:58:00 +0200
committerDaniel Rentz <dr@openoffice.org>2010-08-04 09:58:00 +0200
commit0140f7e96cc04269253d8e60894fa0f7ee892154 (patch)
tree33114e2838984bdaba93e155b761d2b3c30026ec /sc/source/ui/vba
parent403e06a2806cacd8765666f2e85b3647624bc0e6 (diff)
mib18: #163195# set correct parent for range returned by VBA ActiveCell symbol
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index 8f5aba5c4acb..af02398e5a0f 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -302,7 +302,8 @@ ScVbaApplication::getActiveCell() throw (uno::RuntimeException )
sal_Int32 nCursorX = pTabView->GetCurX();
sal_Int32 nCursorY = pTabView->GetCurY();
- return new ScVbaRange( this, mxContext, xRange->getCellRangeByPosition( nCursorX, nCursorY, nCursorX, nCursorY ) );
+ uno::Reference< XHelperInterface > xParent( excel::getUnoSheetModuleObj( xRange ), uno::UNO_QUERY_THROW );
+ return new ScVbaRange( xParent, mxContext, xRange->getCellRangeByPosition( nCursorX, nCursorY, nCursorX, nCursorY ) );
}
uno::Any SAL_CALL