Kaydet (Commit) f8aca037 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

USHRT_MAX -> SAL_MAX_UINT16

...presumably forgotten when changing SwEditShell::InsertDDETable parameters
from USHORT to sal_uInt16 in 7f33ed41
"removetooltypes01: #i112600# Remove tools types from sw"

Change-Id: I28ad46bdfb6c95a7d2e0bcbf2ef8eef29217baa5
Reviewed-on: https://gerrit.libreoffice.org/48436Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e8efbffc
...@@ -2148,7 +2148,7 @@ bool SwTransferable::PasteDDE( TransferableDataHelper& rData, ...@@ -2148,7 +2148,7 @@ bool SwTransferable::PasteDDE( TransferableDataHelper& rData,
sal_Int32 nCols = comphelper::string::getTokenCount(sTmp, '\t'); sal_Int32 nCols = comphelper::string::getTokenCount(sTmp, '\t');
// don't try to insert tables that are too large for writer // don't try to insert tables that are too large for writer
if (nRows > USHRT_MAX || nCols > USHRT_MAX) if (nRows > SAL_MAX_UINT16 || nCols > SAL_MAX_UINT16)
{ {
if( bMsg ) if( bMsg )
ScopedVclPtrInstance<MessageDialog>(nullptr, SwResId(STR_TABLE_TOO_LARGE), VclMessageType::Info)->Execute(); ScopedVclPtrInstance<MessageDialog>(nullptr, SwResId(STR_TABLE_TOO_LARGE), VclMessageType::Info)->Execute();
......
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