sw_engine: the check if the stroke width > 0 after conversion its value from float...
authorMira Grudzinska <m.grudzinska@samsung.com>
Tue, 8 Sep 2020 13:30:41 +0000 (15:30 +0200)
committerHermet Park <chuneon.park@samsung.com>
Thu, 10 Sep 2020 06:34:11 +0000 (15:34 +0900)
During stroke width interpolation, if the width value after conversion
to long was 0, the bbox size was undefined.

Change-Id: I9425b9c16665bdb8346bd00092f73c109cbf9fb9

src/lib/sw_engine/tvgSwRenderer.cpp

index 07926b4..7a69038 100644 (file)
@@ -41,7 +41,7 @@ struct SwTask : Task
         //Valid Stroking?
         uint8_t strokeAlpha = 0;
         auto strokeWidth = sdata->strokeWidth();
-        if (strokeWidth > FLT_EPSILON) {
+        if (TO_SWCOORD(strokeWidth * 0.5) > 0) {
             sdata->strokeColor(nullptr, nullptr, nullptr, &strokeAlpha);
         }