Merge "Fix Coverity issue" into devel/master
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 28 Jan 2020 00:59:53 +0000 (00:59 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 28 Jan 2020 00:59:53 +0000 (00:59 +0000)
dali-toolkit/devel-api/text/text-utils-devel.cpp

index fae3c10..fc8afb9 100755 (executable)
@@ -1241,7 +1241,7 @@ void UpdateBuffer(Devel::PixelBuffer src, Devel::PixelBuffer dst, unsigned int x
   }
 
   const unsigned int bytesPerPixel = Dali::Pixel::GetBytesPerPixel(pixelFormat);
-  if( bytesPerPixel == 0u )
+  if( bytesPerPixel == 0u || bytesPerPixel == 12u || bytesPerPixel == 24u )
   {
     return;
   }