[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: g_hook.c
User: pcjc2
Date: 07/02/25 08:36:58
Modified: . Tag: noscreen g_hook.c
Log:
Added call to o_text_recalc() in o_text_recreate(), keeping bounds up to date.
Removed conditional update of screen coords in g_set_attrib_text_properties,
since o_text_recreate() should be recalculating as necessary.
Revision Changes Path
No revision
No revision
1.13.2.2 +0 -9 eda/geda/gaf/gschem/src/g_hook.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: g_hook.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/g_hook.c,v
retrieving revision 1.13.2.1
retrieving revision 1.13.2.2
diff -u -b -r1.13.2.1 -r1.13.2.2
--- g_hook.c 27 Dec 2006 17:37:56 -0000 1.13.2.1
+++ g_hook.c 25 Feb 2007 13:36:57 -0000 1.13.2.2
@@ -272,7 +272,6 @@
int alignment = -2;
int rotation = 0;
int x = -1, y = -1;
- gboolean changed = FALSE;
SCM_ASSERT (SCM_STRINGP(scm_colorname), scm_colorname,
SCM_ARG2, "set-attribute-text-properties!");
@@ -349,26 +348,18 @@
o_text_erase(w_current, object);
if (x != -1) {
object->text->x = x;
- changed = TRUE;
}
if (y != -1) {
object->text->y = y;
- changed = TRUE;
- }
- if (changed) {
- WORLDtoSCREEN(w_current, x, y, &object->text->screen_x, &object->text->screen_y);
}
if (size != -1) {
object->text->size = size;
- changed = TRUE;
}
if (alignment != -1) {
object->text->alignment = alignment;
- changed = TRUE;
}
if (rotation != -1) {
object->text->angle = rotation;
- changed = TRUE;
}
o_text_recreate(w_current, object);
if (!w_current->DONT_REDRAW) {
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs