From a4f09f8c2ef3ae82b86d1b4f0c6c90d1a61614fa Mon Sep 17 00:00:00 2001 From: Aditya Kale Date: Tue, 1 Apr 2014 15:18:11 +0100 Subject: fdo#73552 - Set name of CSV import sheet to something friendly Change-Id: Ia68283947d954d648fa25356f2b95ba0ab7010aa Reviewed-on: https://gerrit.libreoffice.org/8811 Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- sc/source/ui/docshell/docsh.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 7e505f410d6e..28ae7fa526c4 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -1207,6 +1207,8 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) aDocument.StartAllListeners(); sc::SetFormulaDirtyContext aCxt; aDocument.SetAllFormulasDirty(aCxt); + INetURLObject aURLObjForDefaultNameSheetName(rMedium.GetName()); + aDocument.RenameTab(0,aURLObjForDefaultNameSheetName.GetBase()); bOverflowRow = aImpEx.IsOverflowRow(); bOverflowCol = aImpEx.IsOverflowCol(); bOverflowCell = aImpEx.IsOverflowCell(); -- cgit v1.2.3