[Libreoffice-commits] core.git: sc/source
Dennis Francis (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 7 09:49:43 UTC 2020
sc/source/ui/view/gridwin.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 33509fd9483099470160abb66074c5d052b31eda
Author: Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Wed Jun 3 14:59:12 2020 +0530
Commit: Dennis Francis <dennis.francis at collabora.com>
CommitDate: Tue Jul 7 11:49:00 2020 +0200
ScGridWindow::UpdateEditViewPos: keep EditView's print-twips data updated
Change-Id: I2f6fab371a107a4f16704030e341198a541020f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98127
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis at collabora.com>
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 1e747fa6fe46..6e173754b79a 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -4554,6 +4554,18 @@ void ScGridWindow::UpdateEditViewPos()
{
// bForceToTop = sal_True for editing
tools::Rectangle aPixRect = pViewData->GetEditArea( eWhich, nCol, nRow, this, nullptr, true );
+
+ if (comphelper::LibreOfficeKit::isActive() &&
+ comphelper::LibreOfficeKit::isCompatFlagSet(
+ comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs))
+ {
+ tools::Rectangle aPTwipsRect = pViewData->GetEditArea(eWhich, nCol, nRow, this, nullptr,
+ true, true /* bInPrintTwips */);
+ tools::Rectangle aOutputAreaPTwips = pView->GetLOKSpecialOutputArea();
+ aOutputAreaPTwips.SetPos(aPTwipsRect.TopLeft());
+ pView->SetLOKSpecialOutputArea(aOutputAreaPTwips);
+ }
+
Point aScrPos = PixelToLogic( aPixRect.TopLeft(), pViewData->GetLogicMode() );
tools::Rectangle aRect = pView->GetOutputArea();
More information about the Libreoffice-commits
mailing list