summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen8.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-25 08:04:27 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-26 19:06:44 +0200
commit92b973fadcf63409026237884e81a1e3f3e62660 (patch)
tree1b5b608801f69ba2568e2ffdb416b319e3c32dd1 /sc/source/core/data/documen8.cxx
parent99a6a8d1bddc11097ff1bf386eb31132dbcdf311 (diff)
Use an 8bpp virtual device (instead of a 1bpp one) in sw and sc for iOS
The reason why a 1bpp virtual device is used in these two places in sc and sw is unclear to me. It causes complications on iOS as such a bitmap gets passed to CGBitmapContextCreate() which does not accept 1bpp bitmaps. But let's keep the 1bpp for other platforms. Change-Id: Ia34927cf728d4be05a31e88b7da78200d0b799ba
Diffstat (limited to 'sc/source/core/data/documen8.cxx')
-rw-r--r--sc/source/core/data/documen8.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index f5352356a250..9a6c0fb3ab2a 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -207,7 +207,11 @@ VirtualDevice* ScDocument::GetVirtualDevice_100th_mm()
{
if (!pVirtualDevice_100th_mm)
{
+#ifdef IOS
+ pVirtualDevice_100th_mm = new VirtualDevice( 8 );
+#else
pVirtualDevice_100th_mm = new VirtualDevice( 1 );
+#endif
pVirtualDevice_100th_mm->SetReferenceDevice(VirtualDevice::REFDEV_MODE_MSO1);
MapMode aMapMode( pVirtualDevice_100th_mm->GetMapMode() );
aMapMode.SetMapUnit( MAP_100TH_MM );