summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-03 20:43:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-03 20:43:57 +0000
commit944e95328f7148e9ed45a8c346c4051fa567bd61 (patch)
tree36aef4ad563abfd77acfadc095d82f0bc1d34966
parentavoid config and gallery for ppt loader testing (diff)
downloadcore-944e95328f7148e9ed45a8c346c4051fa567bd61.tar.gz
core-944e95328f7148e9ed45a8c346c4051fa567bd61.zip
avoid config for ppt loader testing
Change-Id: I6508ea7da815290f3bd15ac1d012ebb745090b11
-rw-r--r--sd/source/filter/ppt/pptin.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 0fdf57c4e582..c67ed9390861 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -1947,7 +1947,11 @@ OUString ImplSdPPTImport::ReadSound(sal_uInt32 nSoundRef) const
DffRecordHeader aSoundDataRecHd;
if ( SeekToRec( rStCtrl, PPT_PST_SoundData, nStrLen, &aSoundDataRecHd ) )
{
- OUString aGalleryDir( SvtPathOptions().GetGalleryPath() );
+ OUString aGalleryDir;
+ if (utl::ConfigManager::IsAvoidConfig())
+ osl_getTempDirURL(&aGalleryDir.pData);
+ else
+ aGalleryDir = SvtPathOptions().GetGalleryPath();
sal_Int32 nTokenCount = comphelper::string::getTokenCount(aGalleryDir, ';');
INetURLObject aGalleryUserSound( aGalleryDir.getToken( nTokenCount - 1, ';' ) );