You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/xfig/files/xfig-3.2.5b-zoom-during-edi...

23 lines
691 B

commit fc4381d7c3e8d7440a3e33430d24ebf217a99142
Author: Vladislav Zavjalov <slazav@altlinux.org>
Date: Thu Oct 2 12:24:04 2008 +0400
fix calling null function (todo: problem with initialize_char_handler after resize?)
Fixes crash. To reproduce create some object, zoom in so that it does not fit
the screen, start another edit and press Ctrl+Z.
diff --git a/xfig/u_redraw.c b/xfig/u_redraw.c
index 146abfa..fd53a8e 100644
--- a/xfig/u_redraw.c
+++ b/xfig/u_redraw.c
@@ -434,7 +434,7 @@ redisplay_curobj()
}
} else {
/* editing an object, just refresh it as is */
- (*canvas_ref_proc)(cur_x, cur_y);
+ if (canvas_ref_proc) (*canvas_ref_proc)(cur_x, cur_y);
}
}