Kaydet (Commit) d2a73cf3 authored tarafından Michael Stahl's avatar Michael Stahl

SwMultiTOXTabDialog: fortunately the bogus SetTemplatePath call

... fails with exception and does not modify the configuration.

(regression from 1b0f7ee1)

Change-Id: I0e12cf0b531bc68147cf2be22c28c75c0f05f3ff
üst 09eacfbd
...@@ -476,7 +476,6 @@ IMPL_LINK_NOARG( SwMultiTOXTabDialog, ShowPreviewHdl ) ...@@ -476,7 +476,6 @@ IMPL_LINK_NOARG( SwMultiTOXTabDialog, ShowPreviewHdl )
OUString sTemplate("internal/idxexample.odt"); OUString sTemplate("internal/idxexample.odt");
SvtPathOptions aOpt; SvtPathOptions aOpt;
aOpt.SetTemplatePath(OUString(LIBO_SHARE_FOLDER "/template/common"));
bool bExist = aOpt.SearchFile( sTemplate, SvtPathOptions::PATH_TEMPLATE ); bool bExist = aOpt.SearchFile( sTemplate, SvtPathOptions::PATH_TEMPLATE );
if(!bExist) if(!bExist)
......
...@@ -287,8 +287,9 @@ void SvtPathOptions_Impl::SetPath( SvtPathOptions::Paths ePath, const OUString& ...@@ -287,8 +287,9 @@ void SvtPathOptions_Impl::SetPath( SvtPathOptions::Paths ePath, const OUString&
{ {
m_xPathSettings->setFastPropertyValue( m_aMapEnumToPropHandle[ (sal_Int32)ePath], a ); m_xPathSettings->setFastPropertyValue( m_aMapEnumToPropHandle[ (sal_Int32)ePath], a );
} }
catch (const Exception&) catch (const Exception& e)
{ {
SAL_WARN("unotools.config", "SetPath: exception: " << e.Message);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment