diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-26 16:02:50 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-26 17:54:27 +0100 |
commit | f849d96463d967214bc063f6de912a082272c395 (patch) | |
tree | 998470859b5f700db40084e89a257ec8a8b78999 /sc | |
parent | 2a6aa95a7af11eb091dfa9494cd810998b2e324d (diff) |
tdf#91416 - fix some incorrectly allocated VirtualDevices.
Change-Id: I9ebed313827986473c60e77b7e218b4c1b2487fe
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/sizedev.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/sizedev.cxx b/sc/source/ui/docshell/sizedev.cxx index 744266efe4f5..90bca78f619f 100644 --- a/sc/source/ui/docshell/sizedev.cxx +++ b/sc/source/ui/docshell/sizedev.cxx @@ -39,7 +39,7 @@ ScSizeDeviceProvider::ScSizeDeviceProvider( ScDocShell* pDocSh ) } else { - pDevice = new VirtualDevice; + pDevice = VclPtr<VirtualDevice>::Create(); pDevice->SetDigitLanguage( SC_MOD()->GetOptDigitLanguage() ); bOwner = true; } diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index c175d022a0a0..bfda05af7464 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -498,7 +498,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod // #i45033# For OLE inplace editing with different zoom factors, // use a virtual device with 1/100th mm as text formatting reference - xFmtVirtDev.reset( new VirtualDevice ); + xFmtVirtDev.reset( VclPtr<VirtualDevice>::Create() ); xFmtVirtDev->SetMapMode( MAP_100TH_MM ); aOutputData.SetFmtDevice( xFmtVirtDev.get() ); |