summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[GSoC]ChangeLog8
-rw-r--r--src/sdf/ftsdf.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index bb217fcdf..5264adb47 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -1,3 +1,11 @@
+2020-08-13 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Bug fix.
+
+ * src/sdf/ftsdf.c (sdf_generate_with_overlaps): The
+ outside sign will always be 1. And added a missing
+ `else'.
+
2020-08-12 Anuj Verma <anujv@iitbhilai.ac.in>
[base] Fix memory leaks due to FreeType internals.
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index 5a6ad70a5..6d7749335 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -3285,8 +3285,8 @@
/* wise contours. */
if ( orientations[i] == SDF_ORIENTATION_ACW &&
internal_params.orientation == FT_ORIENTATION_FILL_RIGHT )
- internal_params.overload_sign = -1;
- if ( orientations[i] == SDF_ORIENTATION_CW &&
+ internal_params.overload_sign = 1;
+ else if ( orientations[i] == SDF_ORIENTATION_CW &&
internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
internal_params.overload_sign = 1;
else