Kaydet (Commit) d1e2205c authored tarafından Christian Lohmaier's avatar Christian Lohmaier Kaydeden (comit) Tomaž Vajngerl

android: hackaround for rendering regression (disable charts)

eba883c8 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/45493Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 5684e53b
...@@ -236,6 +236,10 @@ void LokChartHelper::PaintAllChartsOnTile(VirtualDevice& rDevice, ...@@ -236,6 +236,10 @@ void LokChartHelper::PaintAllChartsOnTile(VirtualDevice& rDevice,
int nTilePosX, int nTilePosY, int nTilePosX, int nTilePosY,
long nTileWidth, long nTileHeight) 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 // Resizes the virtual device so to contain the entries context
rDevice.SetOutputSizePixel(Size(nOutputWidth, nOutputHeight)); rDevice.SetOutputSizePixel(Size(nOutputWidth, nOutputHeight));
...@@ -259,6 +263,7 @@ void LokChartHelper::PaintAllChartsOnTile(VirtualDevice& rDevice, ...@@ -259,6 +263,7 @@ void LokChartHelper::PaintAllChartsOnTile(VirtualDevice& rDevice,
pViewShell = SfxViewShell::GetNext(*pViewShell); pViewShell = SfxViewShell::GetNext(*pViewShell);
} }
rDevice.Pop(); rDevice.Pop();
#endif
} }
bool LokChartHelper::postMouseEvent(int nType, int nX, int nY, bool LokChartHelper::postMouseEvent(int nType, int nX, int nY,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment