From 9aed2e99641b4368e847f087434452c923e3e61b Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Wed, 22 Feb 2023 13:55:23 +0900 Subject: [PATCH] Fix svace issue (useless branch) Change-Id: I122720a0aaaf74de0a30cd66730275688f03da7d Signed-off-by: Eunki, Hong --- dali/internal/imaging/common/image-operations.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/dali/internal/imaging/common/image-operations.cpp b/dali/internal/imaging/common/image-operations.cpp index e08b66a..597bfe8 100644 --- a/dali/internal/imaging/common/image-operations.cpp +++ b/dali/internal/imaging/common/image-operations.cpp @@ -748,15 +748,12 @@ void HorizontalSkew(const uint8_t* const srcBufferPtr, int32_t i = std::max(static_cast(srcWidth) + offset, -static_cast(dstWidth * row)); if(i < static_cast(dstWidth)) { - if(row * dstWidth + i >= 0) - { - // If still in image bounds, put leftovers there - const uint32_t dstIndex = pixelSize * (row * dstWidth + i); + // If still in image bounds, put leftovers there + const uint32_t dstIndex = pixelSize * (row * dstWidth + i); - for(uint32_t channel = 0u; channel < pixelSize; ++channel) - { - *(dstBufferPtr + dstIndex + channel) = oldLeft[channel]; - } + for(uint32_t channel = 0u; channel < pixelSize; ++channel) + { + *(dstBufferPtr + dstIndex + channel) = oldLeft[channel]; } // Clear to the right of the skewed line with background -- 2.7.4