summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-30 22:56:41 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-30 23:13:20 +0100
commit89d7363b0029458cb924169f3b0d207a29916fd0 (patch)
treeb67fcc0974ddf3c5a9bf5430b108959ddb28e7c6
parente7f3330c98d83282f957513941fd7b5a7b9c00b7 (diff)
don't update row height for csv import, fdo#69009
Multiline cells are already updated and we can skip the other cells. Change-Id: I6690beeaad01543c12cb42247baec6fbc18aaa77
-rw-r--r--sc/source/ui/docshell/impex.cxx8
-rw-r--r--sc/source/ui/inc/impex.hxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index df74149d8f76..025737f86fef 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -234,9 +234,9 @@ bool ScImportExport::StartPaste()
// Nachbereitung Insert: Undo/Redo-Aktionen erzeugen, Invalidate/Repaint
-void ScImportExport::EndPaste()
+void ScImportExport::EndPaste(bool bAutoRowHeight)
{
- bool bHeight = pDocSh && pDocSh->AdjustRowHeight(
+ bool bHeight = bAutoRowHeight && pDocSh && pDocSh->AdjustRowHeight(
aRange.aStart.Row(), aRange.aEnd.Row(), aRange.aStart.Tab() );
if( pUndoDoc && pDoc->IsUndoEnabled() )
@@ -1470,7 +1470,7 @@ bool ScImportExport::ExtText2Doc( SvStream& rStrm )
nRow = nStartRow;
if (!StartPaste())
{
- EndPaste();
+ EndPaste(false);
return false;
}
}
@@ -1481,7 +1481,7 @@ bool ScImportExport::ExtText2Doc( SvStream& rStrm )
xProgress.reset(); // make room for AdjustRowHeight progress
if (bRangeIsDetermined)
- EndPaste();
+ EndPaste(false);
return true;
}
diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx
index 0535c94aa4a6..43561540d662 100644
--- a/sc/source/ui/inc/impex.hxx
+++ b/sc/source/ui/inc/impex.hxx
@@ -70,7 +70,7 @@ class ScImportExport
ScAsciiOptions* pExtOptions; // extended options
bool StartPaste(); // Protect check, set up Undo
- void EndPaste(); // Undo/Redo actions, Repaint
+ void EndPaste(bool bAutoRowHeight = true); // Undo/Redo actions, Repaint
bool Doc2Text( SvStream& );
bool Text2Doc( SvStream& );
bool Doc2Sylk( SvStream& );