[Libreoffice-commits] core.git: sc/source

Aditya Kale voilavoila28 at yahoo.in
Thu Apr 3 03:17:35 PDT 2014


 sc/source/ui/docshell/docsh.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit a4f09f8c2ef3ae82b86d1b4f0c6c90d1a61614fa
Author: Aditya Kale <voilavoila28 at yahoo.in>
Date:   Tue Apr 1 15:18:11 2014 +0100

    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 at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 7e505f4..28ae7fa 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();


More information about the Libreoffice-commits mailing list