summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/sizedev.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/sizedev.cxx')
-rw-r--r--sc/source/ui/docshell/sizedev.cxx2
1 files changed, 1 insertions, 1 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;
}