From b2afe9c77e83274d9470ad1dee3b37d694f90cf2 Mon Sep 17 00:00:00 2001 From: Glen Low Date: Mon, 5 Oct 2015 12:16:24 +0800 Subject: [PATCH] Fix typos in DEBUG code --- lib/dotgen/mincross.c | 2 +- plugin/core/gvrender_core_pov.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dotgen/mincross.c b/lib/dotgen/mincross.c index 07d1fe80d..e29a4cb90 100644 --- a/lib/dotgen/mincross.c +++ b/lib/dotgen/mincross.c @@ -1105,7 +1105,7 @@ void rec_reset_vlists(graph_t * g) w = furthestnode(g, v, 1); GD_rankleader(g)[r] = u; #ifdef DEBUG - assert(GD_rank(dot_root(g)[r].v[ND_order(u)] == u); + assert(GD_rank(dot_root(g))[r].v[ND_order(u)] == u); #endif GD_rank(g)[r].v = GD_rank(dot_root(g))[r].v + ND_order(u); GD_rank(g)[r].n = ND_order(w) - ND_order(u) + 1; diff --git a/plugin/core/gvrender_core_pov.c b/plugin/core/gvrender_core_pov.c index 13ab1e58d..41f4576ca 100644 --- a/plugin/core/gvrender_core_pov.c +++ b/plugin/core/gvrender_core_pov.c @@ -592,7 +592,7 @@ static void pov_textspan(GVJ_t * job, pointf c, textspan_t * span) z = layerz - 9; #ifdef DEBUG - if (span->postscript_alias) + if (span->font->postscript_alias) gvputs(job, "// Warning: postscript_alias not handled!\n"); #endif -- 2.40.0