summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-04-08 21:23:29 +0200
committerMichael Stahl <mstahl@redhat.com>2014-04-08 21:51:49 +0200
commitd2a73cf32375608a93175a221c769d667140d073 (patch)
tree8fc460664c55f875fea7ba85a26abdb70bf332e8
parent09eacfbd913f682821d7ef74e5c073d11d493c47 (diff)
SwMultiTOXTabDialog: fortunately the bogus SetTemplatePath call
... fails with exception and does not modify the configuration. (regression from 1b0f7ee1e04d7b0fe81f7458ae2116615e0f6889) Change-Id: I0e12cf0b531bc68147cf2be22c28c75c0f05f3ff
-rw-r--r--sw/source/ui/index/cnttab.cxx1
-rw-r--r--unotools/source/config/pathoptions.cxx3
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index a296eeb21e37..8737774703c5 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -476,7 +476,6 @@ IMPL_LINK_NOARG( SwMultiTOXTabDialog, ShowPreviewHdl )
OUString sTemplate("internal/idxexample.odt");
SvtPathOptions aOpt;
- aOpt.SetTemplatePath(OUString(LIBO_SHARE_FOLDER "/template/common"));
bool bExist = aOpt.SearchFile( sTemplate, SvtPathOptions::PATH_TEMPLATE );
if(!bExist)
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index 63a3fbce3394..190053126e2e 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -287,8 +287,9 @@ void SvtPathOptions_Impl::SetPath( SvtPathOptions::Paths ePath, const OUString&
{
m_xPathSettings->setFastPropertyValue( m_aMapEnumToPropHandle[ (sal_Int32)ePath], a );
}
- catch (const Exception&)
+ catch (const Exception& e)
{
+ SAL_WARN("unotools.config", "SetPath: exception: " << e.Message);
}
}
}