Kaydet (Commit) 856c1ea7 authored tarafından Matteo Casalin's avatar Matteo Casalin

Simplify: not empty OUString has at least one token

Change-Id: I2ab30dc532e3778a6101757bd0f2957c2311c3e9
üst e0349dc6
......@@ -2142,9 +2142,7 @@ bool SwTransferable::PasteDDE( TransferableDataHelper& rData,
// When data comes from a spreadsheet, we add a DDE-table
if( ( rData.HasFormat( SotClipboardFormatId::SYLK ) ||
rData.HasFormat( SotClipboardFormatId::SYLK_BIGCAPS ) ) &&
!aExpand.isEmpty() &&
( 1 < nNewlines ||
comphelper::string::getTokenCount(aExpand, '\t') ) )
!aExpand.isEmpty() )
{
const sal_Int32 nRows = nNewlines ? nNewlines-1 : 0;
const sal_Int32 nCols = comphelper::string::getTokenCount(aExpand.getToken(0, '\n'), '\t');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment