summaryrefslogtreecommitdiff
path: root/sfx2/source/view/viewfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/view/viewfrm.cxx')
-rw-r--r--sfx2/source/view/viewfrm.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 38393501adc8..1fa99c46c2f6 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -639,7 +639,13 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
pNewSet->Put( *pURLItem );
// Filter Detection
- SfxMedium aMedium( pURLItem->GetValue(), SFX_STREAM_READWRITE );
+ OUString referer;
+ SFX_REQUEST_ARG(
+ rReq, refererItem, SfxStringItem, SID_REFERER, false);
+ if (refererItem != 0) {
+ referer = refererItem->GetValue();
+ }
+ SfxMedium aMedium( pURLItem->GetValue(), referer, SFX_STREAM_READWRITE );
SfxFilterMatcher().GuessFilter( aMedium, &pFilter );
if ( pFilter )
pNewSet->Put( SfxStringItem( SID_FILTER_NAME, pFilter->GetName() ) );