drawinglayer/source/processor2d/vclpixelprocessor2d.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 749897d308c41cd5c92eccdd9fc7a5becbcea33c
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 6 19:46:09 2020 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Mar 6 22:14:06 2020 +0100

    cid#1460477 Result is not floating-point
    
    warnings is about
    
    aRange.getMinX()-nRadius/2
    
    "
    CID 1460477 (#1 of 1): Result is not floating-point 
(UNINTENDED_INTEGER_DIVISION)
    
    integer_division: Dividing integer expressions 5 and 2, and then converting 
the
    integer quotient to type double. Any remainder, or fractional part of the
    quotient, is ignored.
    
    To compute and use a non-integer quotient, change or cast either operand to
    type double. If integer division is intended, consider indicating that by
    casting the result to type int
    "
    
    Change-Id: I600d909c52b9e86f5193806d42cfd0421d8fc2cd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90132
    Tested-by: Jenkins
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx 
b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
index 8cff84f3d3bf..238cf4c354ad 100644
--- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
@@ -364,7 +364,7 @@ namespace drawinglayer::processor2d
 
                         // obtain result as a bitmap
                         auto bitmap = 
mpOutputDevice->GetBitmapEx(Point(aRange.getMinX(), aRange.getMinY()), 
Size(aRange.getWidth(), aRange.getHeight()));
-                        constexpr sal_Int32 nRadius = 5;
+                        constexpr double nRadius = 5.0;
                         bitmap.Scale(Size(aRange.getWidth()-nRadius, 
aRange.getHeight()-nRadius));
                         // use bitmap later as mask
                         auto mask = bitmap.GetBitmap();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to