[Libreoffice-commits] core.git: sc/source
Winfried Donkers
winfrieddonkers at libreoffice.org
Fri Feb 21 04:45:06 PST 2014
sc/source/ui/app/inputhdl.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 00856ac90d4a230d6f219937f836ca0e9f3fe1e3
Author: Winfried Donkers <winfrieddonkers at libreoffice.org>
Date: Thu Feb 20 07:28:40 2014 +0100
fdo#71077 wrong tips for some calc functions
Calc functions with name X where also calc functions with
name XY exist show the tip for the first XY function
instead of the X function as soon as the '(' is typed in the cell.
This fixes that.
Change-Id: I4dc6280db904765e40eacfe33be6a7e25e84ae79
Reviewed-on: https://gerrit.libreoffice.org/8143
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index b0c7d7e..c5be05b 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -994,7 +994,6 @@ void ScInputHandler::ShowTip( const OUString& rText )
{
// aManualTip muss hinterher von aussen gesetzt werden
HideTip();
-
EditView* pActiveView = pTopView ? pTopView : pTableView;
if (pActiveView)
{
@@ -1103,10 +1102,10 @@ void ScInputHandler::UseFormulaData()
{
nArgPos = aHelper.GetArgStart( aFormula, nNextFStart, 0 );
nArgs = static_cast<sal_uInt16>(ppFDesc->getParameterCount());
-
+ OUString aFuncName = ppFDesc->getFunctionName() + "(";
OUString aNew;
ScTypedCaseStrSet::const_iterator it =
- findText(*pFormulaDataPara, pFormulaDataPara->end(), ppFDesc->getFunctionName(), aNew, false);
+ findText(*pFormulaDataPara, pFormulaDataPara->end(), aFuncName, aNew, false);
if (it != pFormulaDataPara->end())
{
bool bFlag = false;
More information about the Libreoffice-commits
mailing list