summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/html/htmlexp.cxx2
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 58358c6a6320..75b7899c686b 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -1188,7 +1188,7 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
nStartPos = nPos + 1;
}
while( ( nPos = aStrOut.indexOf( '\n', nStartPos ) ) != -1 );
- OUString aSingleLine = aStrOut.copy( nStartPos, aStrOut.getLength() - nStartPos );
+ OUString aSingleLine = aStrOut.copy( nStartPos );
OUT_STR( aSingleLine );
}
}
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
index 2aead2a4d511..2e0f479ccb0f 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
@@ -758,7 +758,7 @@ void ScXMLChangeTrackingImportHelper::SetNewCell(ScMyContentAction* pAction)
}
else
{
- sFormula2 = sFormula.copy( 1, sFormula.getLength() - 1 );
+ sFormula2 = sFormula.copy( 1 );
}
aNewCell.meType = CELLTYPE_FORMULA;