summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-04-10 14:11:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-04-10 14:11:22 +0200
commitee0f84f18071bc6cb8381e590c28dad9a0122625 (patch)
treec773314c76b4d54c6c9f8d8ed48c242ffbc51eaa
parent619b314317ae370fbff54900524adbae397cb860 (diff)
fdo#48496 Decode file URL path segment dispalyed as "place" name
-rw-r--r--fpicker/source/office/iodlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index af9dfed3294b..ce350e0658c0 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -1436,7 +1436,8 @@ IMPL_STATIC_LINK ( SvtFileDialog, AddPlacePressed_Hdl, void*, EMPTYARG )
// Maybe open the PlacesDialog would have been a better idea
// there is an ux choice to make we did not make...
INetURLObject aURLObj( pThis->_pFileView->GetViewURL() );
- PlacePtr newPlace(new Place( aURLObj.GetLastName(),
+ PlacePtr newPlace(
+ new Place( aURLObj.GetLastName(INetURLObject::DECODE_WITH_CHARSET),
::rtl::OUString(pThis->_pFileView->GetViewURL()), true));
pThis->_pImp->_pPlaces->AppendPlace(newPlace);
return 0;