diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-03 20:43:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-03 20:43:57 +0000 |
commit | 944e95328f7148e9ed45a8c346c4051fa567bd61 (patch) | |
tree | 36aef4ad563abfd77acfadc095d82f0bc1d34966 /sd | |
parent | 4032957469cf9847e0aa830dc922f4acd86e32ba (diff) |
avoid config for ppt loader testing
Change-Id: I6508ea7da815290f3bd15ac1d012ebb745090b11
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 6 |
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, ';' ) ); |