Kaydet (Commit) 6f66d988 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

Resolves: tdf#86017 calc has more rows than writer tables can support

as things stand right now in writer if the table doesn't fit it
doesn't fit and don't try

for back-ports reuse same bogus error used for 0 rows/cells

(cherry picked from commit 550cff76)

Change-Id: I90cea4c8566460f614d9a1143a638597d5ab8ce6
üst 26d469f8
......@@ -2173,6 +2173,14 @@ bool SwTransferable::_PasteDDE( TransferableDataHelper& rData,
sTmp = sTmp.getToken( 0, '\n' );
sal_Int32 nCols = comphelper::string::getTokenCount(sTmp, '\t');
if (nRows > USHRT_MAX || nCols > USHRT_MAX)
{
if( bMsg )
ScopedVclPtrInstance<MessageDialog>::Create(nullptr, SW_RESSTR(STR_NO_TABLE), VCL_MESSAGE_INFO)->Execute();
pDDETyp = 0;
break;
}
// at least one column & row must be there
if( !nRows || !nCols )
{
......
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