Commit 19188a9a190ff6469601b23db07d4984393acd1a

Werner Lemberg 2015-09-26T16:57:17

[autofit] Minor tracing improvement. * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Don't emit blue zones header line if there are no blue zones.

diff --git a/ChangeLog b/ChangeLog
index 4665692..b7d4e32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-09-26  Werner Lemberg  <wl@gnu.org>
 
+	[autofit] Minor tracing improvement.
+
+	* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Don't emit
+	blue zones header line if there are no blue zones.
+
+2015-09-26  Werner Lemberg  <wl@gnu.org>
+
 	[bzip2, gzip, lzw] Harmonize function signatures with prototype.
 
 	Suggested by Hin-Tak Leung.
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 954da07..5ccd313 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1038,8 +1038,11 @@
 
     if ( dim == AF_DIMENSION_VERT )
     {
-      FT_TRACE5(( "blue zones (style `%s')\n",
-                  af_style_names[metrics->root.style_class->style] ));
+#ifdef FT_DEBUG_LEVEL_TRACE
+      if ( axis->blue_count )
+        FT_TRACE5(( "blue zones (style `%s')\n",
+                    af_style_names[metrics->root.style_class->style] ));
+#endif
 
       /* scale the blue zones */
       for ( nn = 0; nn < axis->blue_count; nn++ )