summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-23 22:52:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-25 07:54:11 +0100
commit1a95cd72d9cf5ff18a79eb8089a3a7e0a47be0e4 (patch)
tree2bf9df2c3748da6aae2889212ce3ee81cc9a944b /sw
parentb6b5fd494f997be314d154df49c4017db99dda34 (diff)
USHRT_MAX -> SAL_MAX_UINT16
...presumably forgotten when the following cast of nRepeat in the SetRowsToRepeat call was changed from USHORT to sal_uInt16 in 7f33ed417b2e29e5470724ea76967f64699a2662 "removetooltypes01: #i112600# Remove tools types from sw" Change-Id: I3d1932215778977e40cc68fd3aad73477715c214 Reviewed-on: https://gerrit.libreoffice.org/48467 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotbl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 68d9863910f0..67a96acbe0f9 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -230,7 +230,7 @@ static void lcl_SetSpecialProperty(SwFrameFormat* pFormat,
{
sal_Int32 nRepeat = 0;
aValue >>= nRepeat;
- if( nRepeat >= 0 && nRepeat < USHRT_MAX )
+ if( nRepeat >= 0 && nRepeat < SAL_MAX_UINT16 )
pFormat->GetDoc()->SetRowsToRepeat( *pTable, static_cast<sal_uInt16>(nRepeat) );
}
}