summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview3.cxx
diff options
context:
space:
mode:
authorJaume Pujantell <jaume.pujantell@collabora.com>2024-05-23 15:30:42 +0200
committerMiklos Vajna <vmiklos@collabora.com>2024-05-27 11:58:27 +0200
commitc8838d6dded9bcf77da657af50b48a7bfa90b85b (patch)
treeb62f31bf72e5a72ad990227a50344357e2ea4742 /sc/source/ui/view/tabview3.cxx
parent3f2d0414686a8f9a042413c47c4c8ffa5d61f436 (diff)
sc: don't overwrite Special Positioning on MakeEditView
On LOK, calling UpdateEditPos after SetEditEngine overwrote the outer area of mpLOKSpecialPositioning, making the text show on the wrong position on right alined cells with overflowing content. Changing the order of the calls fixes that. Change-Id: I8ddb31103bb6f0bab1a9a6532af55797ef011214 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167991 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 3009eebbad4b1d9883a68066d758a67eeaf3c379) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167946 Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r--sc/source/ui/view/tabview3.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 0b8dcb4b8f61..8b075bf45cbc 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -2212,14 +2212,15 @@ void ScTabView::MakeEditView( ScEditEngineDefaulter* pEngine, SCCOL nCol, SCROW
// MapMode must be set after HideCursor
pGridWin[i]->SetMapMode(aViewData.GetLogicMode());
- aViewData.SetEditEngine( static_cast<ScSplitPos>(i), pEngine, pGridWin[i], nCol, nRow );
-
if ( !bPosVisible )
{
// move the edit view area to the real (possibly negative) position,
// or hide if completely above or left of the window
pGridWin[i]->UpdateEditViewPos();
}
+
+ aViewData.SetEditEngine(static_cast<ScSplitPos>(i), pEngine, pGridWin[i], nCol,
+ nRow);
}
}
}