From 1b734d52023ee66beef531ab955f9d58907f7e91 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 7 Oct 2024 15:50:29 +0200 Subject: [PATCH] fix refression (color of highlighted texts in only_probes view mode) --- src/draw.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/draw.c b/src/draw.c index c86390c3..3f96c9f1 100644 --- a/src/draw.c +++ b/src/draw.c @@ -740,14 +740,16 @@ void draw_symbol(int what,int c, int n,int layer,short tmp_flip, short rot, ROTATION(rot, flip, 0.0,0.0,text.x0,text.y0,x1,y1); textlayer = c; /* do not allow custom text color on hilighted instances */ - if(xctx->only_probes) textlayer = GRIDLAYER; - else if(disabled == 1) textlayer = GRIDLAYER; + if(disabled == 1) textlayer = GRIDLAYER; else if(disabled == 2) textlayer = PINLAYER; else if( xctx->inst[n].color == -10000) { int lay; - get_sym_text_layer(n, j, &lay); - if(lay != -1) textlayer = lay; - else textlayer = symptr->text[j].layer; + if(xctx->only_probes) textlayer = GRIDLAYER; + else { + get_sym_text_layer(n, j, &lay); + if(lay != -1) textlayer = lay; + else textlayer = symptr->text[j].layer; + } } if(textlayer < 0 || textlayer >= cadlayers) textlayer = c; /* display PINLAYER colored instance texts even if PINLAYER disabled */