tdf#90447 vba find() should NOT select the found cell.

Change-Id: Ia8c331f33bc81e7bdabeea649a47c73930dae206
This commit is contained in:
Justin Luth
2015-04-07 19:26:17 +03:00
committed by Markus Mohrhard
parent 853bfc68b9
commit a623d1a0e6
3 changed files with 4 additions and 1 deletions

View File

@@ -229,6 +229,10 @@ void ScMacrosTest::testVba()
OUString("vba_endFunction."),
OUString("vnd.sun.Star.script:VBAProject.testMacros.test?language=Basic&location=document")
},
{
OUString("vba_findFunction."),
OUString("vnd.sun.Star.script:VBAProject.testMacros.test?language=Basic&location=document")
},
};
OUString sTempDir;
OUString sTempDirURL;

Binary file not shown.

View File

@@ -3281,7 +3281,6 @@ ScVbaRange::Find( const uno::Any& What, const uno::Any& After, const uno::Any& L
uno::Reference< excel::XRange > xResultRange = new ScVbaRange( mxParent, mxContext, xCellRange );
if( xResultRange.is() )
{
xResultRange->Select();
return xResultRange;
}
}