https://bugs.documentfoundation.org/show_bug.cgi?id=148704
Michael Weghorn changed:
What|Removed |Added
Assignee|libreoffice-b...@lists.free |m.wegh...@posteo.de
|desktop.org |
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
--- Comment #3 from Michael Weghorn ---
While looking at a different Android issue, I came across this:
> sc/source/ui/view/gridwin4.cxx-// setup the SdrPage so that drawinglayer
> works correctly
> sc/source/ui/view/gridwin4.cxx-ScDrawLayer* pModel = rDoc.GetDrawLayer();
> sc/source/ui/view/gridwin4.cxx-if (pModel)
> sc/source/ui/view/gridwin4.cxx-{
> sc/source/ui/view/gridwin4.cxx-bool bPrintTwipsMsgs =
> comphelper::LibreOfficeKit::isCompatFlagSet(
> sc/source/ui/view/gridwin4.cxx:
> comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs);
> sc/source/ui/view/gridwin4.cxx-mpLOKDrawView.reset(bPrintTwipsMsgs ?
> sc/source/ui/view/gridwin4.cxx-new ScLOKDrawView(
> sc/source/ui/view/gridwin4.cxx-,
> sc/source/ui/view/gridwin4.cxx-mrViewData) :
> sc/source/ui/view/gridwin4.cxx-new FmFormView(
> sc/source/ui/view/gridwin4.cxx-*pModel,
> sc/source/ui/view/gridwin4.cxx-));
> sc/source/ui/view/gridwin4.cxx-
> sc/source/ui/view/gridwin4.cxx-
> mpLOKDrawView->SetNegativeX(bLayoutRTL);
> sc/source/ui/view/gridwin4.cxx-
> mpLOKDrawView->ShowSdrPage(mpLOKDrawView->GetModel()->GetPage(nTab));
> sc/source/ui/view/gridwin4.cxx-
> aOutputData.SetDrawView(mpLOKDrawView.get());
> sc/source/ui/view/gridwin4.cxx-
> aOutputData.SetSpellCheckContext(mpSpellCheckCxt.get());
> sc/source/ui/view/gridwin4.cxx-}
In a quick test, unconditionally setting
comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs as below made rendering
work fine in Android Viewer and gtktiledviewer.
The below was just for testing, but I plan to take a closer look at some point
whether setting that compat flag for both of them is the way forward.
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 462e2e5d25af..36ed36951999 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -6482,6 +6482,9 @@ static int lo_initialize(LibreOfficeKit* pThis, const
char* pAppPath, const char
}
}
+comphelper::LibreOfficeKit::setCompatFlag(
+comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs);
+
// What stage are we at ?
if (pThis == nullptr)
{
--
You are receiving this mail because:
You are the assignee for the bug.