summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-16 16:15:08 +0100
committerTomaž Vajngerl <quikee@gmail.com>2018-01-22 11:37:54 +0100
commit50833efae43cf801ae602ccf30b431cc4c90275c (patch)
tree5c5553bf7f1d2be470ca373529d8bfab09253ec7
parentbf92a5af6cb2928578bade9d367738d7e0f283e7 (diff)
Presumably misplaced cast
...that was originally introduced as int intRadius = (int) radius + 1.0; in 05363527d84119c6759cdd638c76b041f2aa67b7 "Separable Gaussian Blur and Unsharpen Mask filter", and presumably was meant to cover the whole right-hand- side addition, not just "radius". Change-Id: I3c14f4055e74e3e4dcccbddce060a86f9bcc23f0 Reviewed-on: https://gerrit.libreoffice.org/48005 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--vcl/source/gdi/bitmap4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx
index 9400f4d61e2b..50eb1853d8c2 100644
--- a/vcl/source/gdi/bitmap4.cxx
+++ b/vcl/source/gdi/bitmap4.cxx
@@ -1043,7 +1043,7 @@ bool Bitmap::ImplPopArt()
}
double* MakeBlurKernel(const double radius, int& rows) {
- int intRadius = static_cast<int>(radius) + 1.0;
+ int intRadius = static_cast<int>(radius + 1.0);
rows = intRadius * 2 + 1;
double* matrix = new double[rows];