diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2017-02-11 16:24:37 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2017-02-25 11:11:16 +0100 |
commit | 9cbe69f1950115e47af693bd78fc78f96f9b508e (patch) | |
tree | 6b3ca675d4fe05e32cae2f89af9149516142ea6c /sd | |
parent | 2b3e1ce39edc5a164ffe42b2e8d49191a71cdaca (diff) |
tdf#104222: Put expensive debug code behind #if again
dump_pset calls very expensive SdGenericDrawPage::getPropertyValue
doing something with GDIMetaFiles.
(regression from 5c7ce42dfc35d9cceef5f05a96e813b4e3913d38)
Change-Id: If39e9a451c87754343d77c8a1f840153c6b9de80
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index a20ead1f37be..76e00b457c96 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -94,7 +94,9 @@ using ::com::sun::star::container::XIndexAccess; using ::sax_fastparser::FSHelperPtr; +#if OSL_DEBUG_LEVEL > 1 void dump_pset(Reference< XPropertySet > const & rXPropSet); +#endif namespace oox { using namespace drawingml; @@ -1785,7 +1787,9 @@ void PowerPointExport::ImplWritePPTXLayout( sal_Int32 nOffset, sal_uInt32 nMaste Reference< beans::XPropertySet > xPropSet( xSlide, uno::UNO_QUERY ); xPropSet->setPropertyValue( "Layout", makeAny( short( aLayoutInfo[ nOffset ].nType ) ) ); +#if OSL_DEBUG_LEVEL > 1 dump_pset(xPropSet); +#endif mXPagePropSet.set( xSlide, UNO_QUERY ); mXShapes.set( xSlide, UNO_QUERY ); @@ -2328,6 +2332,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL sdfilt_component_getFactory( const sal_Char* } +#if OSL_DEBUG_LEVEL > 1 void dump_pset(Reference< XPropertySet > const & rXPropSet) { Reference< XPropertySetInfo > info = rXPropSet->getPropertySetInfo (); @@ -2355,5 +2360,6 @@ void dump_pset(Reference< XPropertySet > const & rXPropSet) SAL_INFO("sd.eppt", "??? <unhandled type>"); } } +#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |