From a7657f72170f9f6412d92e78f4259b35de2974e6 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 8 Sep 2011 01:40:46 -0700 Subject: [PATCH 3/3] moved variables closer to where they are used, for clarity Signed-off-by: Dima Kogan --- gschem/src/o_misc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gschem/src/o_misc.c b/gschem/src/o_misc.c index 01e0596..5a80fa8 100644 --- a/gschem/src/o_misc.c +++ b/gschem/src/o_misc.c @@ -365,7 +365,6 @@ int o_edit_find_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, int page_control = 0; int pcount = 0; int rv; - int x1, y1, x2, y2; int text_screen_height; const GList *iter; @@ -423,6 +422,8 @@ int o_edit_find_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, /* replaced strcmp with strstr to simplify the search */ if (strstr (str,stext)) { if (!skiplast) { + int x1, y1, x2, y2; + a_zoom(w_current, ZOOM_FULL, DONTCARE, A_PAN_DONT_REDRAW); g_assert( world_get_single_object_bounds (toplevel, o_current, &x1, &y1, &x2, &y2) ); text_screen_height = SCREENabs (w_current, y2 - y1); -- 1.7.5.4