[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: g_hook.nw
User: cnieves
Date: 06/02/26 06:26:28
Modified: . g_hook.nw
Log:
Erase the text before changing its attributes in g_set_attrib_text_properties.
Revision Changes Path
1.8 +3 -5 eda/geda/devel/gschem/noweb/g_hook.nw
(In the diff below, changes in quantity of whitespace are not shown.)
Index: g_hook.nw
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/g_hook.nw,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- g_hook.nw 25 Feb 2006 15:00:58 -0000 1.7
+++ g_hook.nw 26 Feb 2006 11:26:28 -0000 1.8
@@ -374,6 +374,7 @@
object = (OBJECT *) attribute->attribute->object;
if (object &&
object->text) {
+ o_text_erase(w_current, object);
if (x != -1) {
object->text->x = x;
changed = TRUE;
@@ -397,13 +398,10 @@
object->text->angle = rotation;
changed = TRUE;
}
- if (changed) {
- o_text_erase(w_current, object);
o_text_recreate(w_current, object);
o_text_draw(w_current, object);
}
}
- }
return SCM_BOOL_T;
}
@ %def g_set_attrib_text_properties