summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/dbui/mmoutputpage.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx
index 123942372153..35d98817a4c8 100644
--- a/sw/source/ui/dbui/mmoutputpage.cxx
+++ b/sw/source/ui/dbui/mmoutputpage.cxx
@@ -170,6 +170,11 @@ SwSaveWarningBox_Impl::SwSaveWarningBox_Impl(Window* pParent, const String& rFil
aWarningImageIM.SetImage(WarningBox::GetStandardImage());
aFileNameED.SetText(rFileName);
aFileNameED.SetModifyHdl(LINK(this, SwSaveWarningBox_Impl, ModifyHdl));
+
+ INetURLObject aTmp(rFileName);
+ aWarningFI.SetText(aWarningFI.GetText().replaceAll("%1", aTmp.getName(
+ INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET)));
+
ModifyHdl( &aFileNameED );
}