Silence cid#1503835 ("UNINTENDED_INTEGER_DIVISION")
Change-Id: Idfc8ea082a9547622e03830f8dcdbf4d774f7f39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132766 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -825,7 +825,7 @@ sal_uInt16 ScColumn::GetOptimalColWidth(
|
||||
{
|
||||
nWidth += 2;
|
||||
sal_uInt16 nTwips = static_cast<sal_uInt16>(
|
||||
std::min(nWidth / nPPTX, double(std::numeric_limits<sal_uInt16>::max() / 2)));
|
||||
std::min(nWidth / nPPTX, std::numeric_limits<sal_uInt16>::max() / 2.0));
|
||||
return nTwips;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user