Fix vertical position error when cutout 10/312910/1
authorANZ1217 <chihun.jeong@samsung.com>
Mon, 17 Jun 2024 07:39:09 +0000 (16:39 +0900)
committerANZ1217 <chihun.jeong@samsung.com>
Mon, 17 Jun 2024 07:39:09 +0000 (16:39 +0900)
Change-Id: Iebc358aa095513fff92374dc8ac2ceed097830e2

dali-toolkit/internal/text/rendering/text-typesetter.cpp

index cce30e5..d24adc1 100644 (file)
@@ -1015,8 +1015,8 @@ Devel::PixelBuffer Typesetter::RenderWithPixelBuffer(const Vector2& size, Toolki
   if(isCutoutEnabled)
   {
     Vector2 offset = mModel->GetOffsetWithCutout();
-    penX += offset.x;
-    penY += offset.y;
+    penX = offset.x;
+    penY = offset.y;
   }
 
   // Generate the image buffers of the text for each different style first,