summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-01-22 18:20:08 +0100
committerEike Rathke <erack@redhat.com>2022-01-24 21:49:45 +0100
commit8204d322379cbc054fb834911d88fb0fe3b040c6 (patch)
treebf8fa8b0639839067b3e7213eaf1f8a2338ff4ca /sc/source/ui/view
parent2c22c95d41cd67ab865d40292e659abdd04a1b3e (diff)
ScInputHandler::UpdateFormulaMode() also for multi-line formulas
Additionally sprinkle some TODO: MLFORMULA comments on places where multi-line formulas should be supported as well but code currently only works for one paragraph. Change-Id: If2630a6493910984e0abb81ff2ed42ed51394681 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128787 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/editsh.cxx1
-rw-r--r--sc/source/ui/view/viewfunc.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 9d7cc3351c6e..7f0a6d9ef080 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -528,6 +528,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
case SID_TOGGLE_REL:
{
+ /* TODO: MLFORMULA: this should work also with multi-line formulas. */
if (pEngine->GetParagraphCount() == 1)
{
OUString aText = pEngine->GetText();
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index af151534c018..247fdeda5a70 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -661,7 +661,7 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
// formulas have to be recognized even if they're formatted
// (but common attributes are still collected)
- if ( !bSimple && aEngine.GetParagraphCount() == 1 )
+ if (!bSimple)
{
OUString aParStr(aEngine.GetText( 0 ));
if ( aParStr[0] == '=' )