fix regression (not allowing to change text size)
This commit is contained in:
parent
e7851d01db
commit
609033e7ca
|
|
@ -1064,11 +1064,11 @@ static void edit_text_property(int x)
|
||||||
xctx->text[sel].flags |= strcmp(str, "bold") ? 0 : TEXT_BOLD;
|
xctx->text[sel].flags |= strcmp(str, "bold") ? 0 : TEXT_BOLD;
|
||||||
str = get_tok_value(xctx->text[sel].prop_ptr, "hide", 0);
|
str = get_tok_value(xctx->text[sel].prop_ptr, "hide", 0);
|
||||||
xctx->text[sel].flags |= strcmp(str, "true") ? 0 : HIDE_TEXT;
|
xctx->text[sel].flags |= strcmp(str, "true") ? 0 : HIDE_TEXT;
|
||||||
|
}
|
||||||
if(size_changed) {
|
if(size_changed) {
|
||||||
xctx->text[sel].xscale=hsize;
|
xctx->text[sel].xscale=hsize;
|
||||||
xctx->text[sel].yscale=vsize;
|
xctx->text[sel].yscale=vsize;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/* calculate bbox, some cleanup needed here */
|
/* calculate bbox, some cleanup needed here */
|
||||||
#if HAS_CAIRO==1
|
#if HAS_CAIRO==1
|
||||||
customfont = set_text_custom_font(&xctx->text[sel]);
|
customfont = set_text_custom_font(&xctx->text[sel]);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ v {xschem version=3.1.0 file_version=1.2
|
||||||
G {}
|
G {}
|
||||||
K {type=pmos
|
K {type=pmos
|
||||||
format="@spiceprefix@name @pinlist @model w=@w l=@l @extra m=@m"
|
format="@spiceprefix@name @pinlist @model w=@w l=@l @extra m=@m"
|
||||||
lvs_format="tcleval(@spiceprefix@name @pinlist @model w=@w l=@l @extra area=[expr [from_eng @w ] * [from_eng @l ] ] m=@m )"
|
|
||||||
template="name=M1 model=pmos w=5u l=0.18u del=0 m=1"
|
template="name=M1 model=pmos w=5u l=0.18u del=0 m=1"
|
||||||
verilog_format="pmos #@del @name ( @@d , @@s , @@g );"}
|
verilog_format="pmos #@del @name ( @@d , @@s , @@g );"}
|
||||||
V {}
|
V {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue