fix ps/svg export of highlighted instances (text color)
This commit is contained in:
parent
24f2af8c81
commit
70aed29f7f
|
|
@ -1098,10 +1098,11 @@ static void ps_draw_symbol(int c, int n,int layer, int what, short tmp_flip, sho
|
|||
} /* if( (!hide && xctx->enable_layer[layer]) || ... */
|
||||
|
||||
draw_texts:
|
||||
if(xctx->inst[n].flags & PIN_OR_LABEL) c_for_text = TEXTWIRELAYER;
|
||||
if(xctx->sym_txt && !(xctx->inst[n].flags & PIN_OR_LABEL)) c_for_text = TEXTLAYER;
|
||||
if( !(xctx->inst[n].flags & HIDE_SYMBOL_TEXTS) && (layer == cadlayers - 1)) {
|
||||
const char *txtptr;
|
||||
if(xctx->inst[n].flags & PIN_OR_LABEL) c_for_text = TEXTWIRELAYER;
|
||||
if(xctx->sym_txt && !(xctx->inst[n].flags & PIN_OR_LABEL)) c_for_text = TEXTLAYER;
|
||||
if(c != layer) c_for_text = c;
|
||||
for(j=0;j< (xctx->inst[n].ptr+ xctx->sym)->texts; ++j)
|
||||
{
|
||||
double xscale, yscale;
|
||||
|
|
|
|||
|
|
@ -778,10 +778,12 @@ static void svg_draw_symbol(int c, int n,int layer,short tmp_flip, short rot,
|
|||
}
|
||||
|
||||
draw_texts:
|
||||
if(xctx->inst[n].flags & PIN_OR_LABEL) c_for_text = TEXTWIRELAYER;
|
||||
if(xctx->sym_txt && !(xctx->inst[n].flags & PIN_OR_LABEL)) c_for_text = TEXTLAYER;
|
||||
if( !(xctx->inst[n].flags & HIDE_SYMBOL_TEXTS) && (layer == cadlayers - 1)) {
|
||||
const char *txtptr;
|
||||
if(xctx->inst[n].flags & PIN_OR_LABEL) c_for_text = TEXTWIRELAYER;
|
||||
if(xctx->sym_txt && !(xctx->inst[n].flags & PIN_OR_LABEL)) c_for_text = TEXTLAYER;
|
||||
if(c != layer) c_for_text = c;
|
||||
|
||||
for(j=0;j< symptr->texts; ++j) {
|
||||
double xscale, yscale;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue