summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-11-29 12:52:41 +0100
committerTomaž Vajngerl <quikee@gmail.com>2017-12-04 08:59:18 +0100
commitd1e2205c6ec1b6e4c36192acc2e5b344e2ccc70d (patch)
tree89d8ac588be5c41210c06e9f81bfea9a68a309c8 /sfx2
parent5684e53b931eaaac658bc3246ae1c3249e252fdb (diff)
android: hackaround for rendering regression (disable charts)
eba883c8a2ce045fc7bd3848d796ca10b7f4ba51 broke rendering in the Android Viewer - only blank pages were the result. This hack just makes the offending function a non-op, allowing the Viewer to render something to the viewer again. Change-Id: Iaa206ff92b2e7642cb921c8e2d61ffd930a59463 Reviewed-on: https://gerrit.libreoffice.org/45493 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/lokcharthelper.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/view/lokcharthelper.cxx b/sfx2/source/view/lokcharthelper.cxx
index 6181920916c0..c8d46b134ad4 100644
--- a/sfx2/source/view/lokcharthelper.cxx
+++ b/sfx2/source/view/lokcharthelper.cxx
@@ -236,6 +236,10 @@ void LokChartHelper::PaintAllChartsOnTile(VirtualDevice& rDevice,
int nTilePosX, int nTilePosY,
long nTileWidth, long nTileHeight)
{
+ // TODO: Hack to make Android Viewer render at least *something* again, but of
+ // course it's just a crude hack to just disable this instead of debugging further
+ // and fixing it for Android case
+#if !defined(ANDROID)
// Resizes the virtual device so to contain the entries context
rDevice.SetOutputSizePixel(Size(nOutputWidth, nOutputHeight));
@@ -259,6 +263,7 @@ void LokChartHelper::PaintAllChartsOnTile(VirtualDevice& rDevice,
pViewShell = SfxViewShell::GetNext(*pViewShell);
}
rDevice.Pop();
+#endif
}
bool LokChartHelper::postMouseEvent(int nType, int nX, int nY,