diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-10-28 20:43:46 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-11-06 01:18:53 +0100 |
commit | 854caac9191b0d6a32fc1d4c9d110f11e7d1a311 (patch) | |
tree | 53b36e34ee52122bbccfd0d93309c4525f9be2dd /desktop/source/lib | |
parent | 4a3dab5a4cd5c7a7039b2cef9d5bb14c1fff49c9 (diff) |
Revert "sc lok: Implement hi-dpi and zoom for spreadsheets."
This reverts commit 498dceb43f870bf9e380f1f87e99c6ccadf1963c.
Change-Id: Iadb9da47cf8c9a57385530ab888d55169db7639a
Reviewed-on: https://gerrit.libreoffice.org/82088
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop/source/lib')
-rw-r--r-- | desktop/source/lib/init.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index ef201b32061e..5b5b301cdee9 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2720,15 +2720,9 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis, // would do - because that one is trying to fit the lines between cells to integer multiples of // pixels. comphelper::ScopeGuard dpiScaleGuard([]() { comphelper::LibreOfficeKit::setDPIScale(1.0); }); - double fDPIScaleX = 1.0; - if (doc_getDocumentType(pThis) == LOK_DOCTYPE_SPREADSHEET) - { - fDPIScaleX = (nCanvasWidth * 3840.0) / (256.0 * nTileWidth); - assert(fabs(fDPIScaleX - ((nCanvasHeight * 3840.0) / (256.0 * nTileHeight))) < 0.0001); - comphelper::LibreOfficeKit::setDPIScale(fDPIScaleX); - } #if defined(IOS) + double fDPIScaleX = 1.0; paintTileIOS(pThis, pBuffer, nCanvasWidth, nCanvasHeight, fDPIScaleX, nTilePosX, nTilePosY, nTileWidth, nTileHeight); #else ScopedVclPtrInstance< VirtualDevice > pDevice(DeviceFormat::DEFAULT); |