diff options
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 115d6760fb71..d003b9d5bc8d 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -4974,7 +4974,7 @@ OUString INetURLObject::GetFull() const OUString INetURLObject::GetPath() const { INetURLObject aTemp(*this); - aTemp.removeSegment(LAST_SEGMENT); + aTemp.removeSegment(); aTemp.removeFinalSlash(); return aTemp.PathToFileName(); } @@ -4994,7 +4994,7 @@ void INetURLObject::SetName(OUString const & rTheName, rtl_TextEncoding eCharset) { INetURLObject aTemp(*this); - if (aTemp.removeSegment(LAST_SEGMENT) + if (aTemp.removeSegment() && aTemp.insertName(rTheName, false, LAST_SEGMENT, true, eMechanism, eCharset)) *this = aTemp; |