tdf#96505 Get rid of cargo cult "long" integer literals

Change-Id: Ic1602a57d1662cb30b2339de9eeb6483fdfbef37
Reviewed-on: https://gerrit.libreoffice.org/29242
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
This commit is contained in:
Rosen 2016-09-24 11:11:27 +05:30 committed by jan iversen
parent 7b8832ff97
commit dad35b0463

View File

@ -441,15 +441,15 @@ void ColorFieldControl::ShowPosition( const Point& rPos, bool bUpdate )
long nX = rPos.X();
long nY = rPos.Y();
if (nX < 0L)
nX = 0L;
if (nX < 0)
nX = 0;
else if (nX >= aSize.Width())
nX = aSize.Width() - 1L;
nX = aSize.Width() - 1;
if (nY < 0L)
nY = 0L;
if (nY < 0)
nY = 0;
else if (nY >= aSize.Height())
nY = aSize.Height() - 1L;
nY = aSize.Height() - 1;
Point aPos = maPosition;
maPosition.X() = nX - 5;
@ -765,7 +765,7 @@ void ColorSliderControl::ChangePosition(long nY)
{
const long nHeight = GetOutputSizePixel().Height() - 1;
if (nY < 0L)
if (nY < 0)
nY = 0;
else if (nY > nHeight)
nY = nHeight;