diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-05-16 15:26:42 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-05-16 15:28:56 +0200 |
commit | c4361c93de2b9661d59bc4aa799dffea7ad579e2 (patch) | |
tree | 353f0dfc188957a4519652b10e0189cd08c62534 | |
parent | e7a09ccf955bf0b97de24ff4fcaf5e3e526351ef (diff) |
Fix crash in WMF import - fdo#36991.
-rw-r--r-- | svtools/source/filter.vcl/wmf/winmtf.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/filter.vcl/wmf/winmtf.cxx b/svtools/source/filter.vcl/wmf/winmtf.cxx index 91c0d2fc73..8b5739cac5 100644 --- a/svtools/source/filter.vcl/wmf/winmtf.cxx +++ b/svtools/source/filter.vcl/wmf/winmtf.cxx @@ -37,6 +37,7 @@ #include <vcl/graphictools.hxx> #include <vcl/canvastools.hxx> #include <vcl/metric.hxx> +#include <vcl/svapp.hxx> #include <rtl/tencinfo.h> // ------------------------------------------------------------------------ @@ -1617,6 +1618,8 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry sal_Int32* pDX = pDXArry; if ( !pDXArry ) { + SolarMutexGuard aGuard; + pDX = new sal_Int32[ rText.Len() ]; if ( !pVDev ) pVDev = new VirtualDevice; |