View | Details | Raw Unified | Return to issue 20496
Collapse All | Expand All

(-)sc/source/ui/app/inputhdl.cxx (-2 / +4 lines)
Lines 1617-1623 BOOL ScInputHandler::StartTable( sal_Uni Link Here
1617
				if ( bAutoComplete )
1617
				if ( bAutoComplete )
1618
					GetColData();
1618
					GetColData();
1619
1619
1620
				if ( aStr.GetChar(0) == '=' && !cTyped && !bCreatingFuncView )
1620
				if ( (aStr.GetChar(0) == '=' || aStr.GetChar(0) == '+' || aStr.GetChar(0) == '-') 
1621
						&& !cTyped && !bCreatingFuncView )
1621
					InitRangeFinder(aStr);				// Formel wird editiert -> RangeFinder
1622
					InitRangeFinder(aStr);				// Formel wird editiert -> RangeFinder
1622
1623
1623
				bNewTable = TRUE;		//	-> PostEditView-Aufruf
1624
				bNewTable = TRUE;		//	-> PostEditView-Aufruf
Lines 1811-1817 void ScInputHandler::UpdateFormulaMode() Link Here
1811
{
1812
{
1812
	SfxApplication* pSfxApp = SFX_APP();
1813
	SfxApplication* pSfxApp = SFX_APP();
1813
1814
1814
	if ( pEngine->GetParagraphCount()==1 && pEngine->GetText((USHORT)0).GetChar(0) == '='
1815
	if ( pEngine->GetParagraphCount()==1 && (pEngine->GetText((USHORT)0).GetChar(0) == '='
1816
		|| pEngine->GetText((USHORT)0).GetChar(0) == '+' || pEngine->GetText((USHORT)0).GetChar(0) == '-')
1815
		&& !bProtected )
1817
		&& !bProtected )
1816
	{
1818
	{
1817
		if (!bFormulaMode)
1819
		if (!bFormulaMode)
(-)sc/source/ui/view/viewfunc.cxx (-1 / +6 lines)
Lines 450-457 void ScViewFunc::EnterData( SCCOL nCol, Link Here
450
		}
450
		}
451
451
452
		BOOL bNumFmtChanged = FALSE;
452
		BOOL bNumFmtChanged = FALSE;
453
		double fVal;
454
		ULONG nIndex = 0;
455
453
		// einzelnes '=' ist String (wird fuer Spezialfilter so gebraucht)
456
		// einzelnes '=' ist String (wird fuer Spezialfilter so gebraucht)
454
		if ( rString.GetChar(0) == '=' && rString.Len() > 1 )
457
		if ( rString.Len() > 1 && 
458
		   ( rString.GetChar(0) == '=' || rString.GetChar(0) == '+' || rString.GetChar(0) == '-' ) &&
459
		   (pDoc->GetNumberFormat(nCol, nRow, nTab, nIndex), !rFormatter.IsNumberFormat(rString, nIndex, fVal)))
455
		{	// Formel, compile mit AutoCorrection
460
		{	// Formel, compile mit AutoCorrection
456
			for (i=0; i<nTabCount; i++)
461
			for (i=0; i<nTabCount; i++)
457
				if (rMark.GetTableSelect(i))
462
				if (rMark.GetTableSelect(i))

Return to issue 20496