summaryrefslogtreecommitdiff
path: root/svx/source/dialog/fntctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/fntctrl.cxx')
-rw-r--r--svx/source/dialog/fntctrl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 820a6d3b57c9..a1bb1d4c8289 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -496,7 +496,8 @@ VCL_BUILDER_DECL_FACTORY(SvxFontPrevWindow)
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
- return VclPtr<SvxFontPrevWindow>::Create(pParent, nWinStyle);
+ SvxFontPrevWindow *pWindow = new SvxFontPrevWindow(pParent, nWinStyle);
+ return pWindow;
}
SvxFontPrevWindow::~SvxFontPrevWindow()