summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Kale <voilavoila28@yahoo.in>2014-04-01 15:18:11 +0100
committerEike Rathke <erack@redhat.com>2014-04-03 10:17:04 +0000
commita4f09f8c2ef3ae82b86d1b4f0c6c90d1a61614fa (patch)
tree7ba0171a698dde1b2f596d9d73ae5b11ef13236b
parent31a24849bac2b3bc080eb341d8150b3994432395 (diff)
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 <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/ui/docshell/docsh.cxx2
1 files changed, 2 insertions, 0 deletions
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();