]>
Commit | Line | Data |
---|---|---|
0c8721ff AM |
1 | commit fc4381d7c3e8d7440a3e33430d24ebf217a99142 |
2 | Author: Vladislav Zavjalov <slazav@altlinux.org> | |
3 | Date: Thu Oct 2 12:24:04 2008 +0400 | |
4 | ||
5 | fix calling null function (todo: problem with initialize_char_handler after resize?) | |
6 | ||
7 | Fixes crash. To reproduce create some object, zoom in so that it does not fit | |
8 | the screen, start another edit and press Ctrl+Z. | |
9 | ||
07d686d4 JB |
10 | --- a/xfig/src/u_redraw.c |
11 | +++ b/xfig/src/u_redraw.c | |
0c8721ff AM |
12 | @@ -434,7 +434,7 @@ redisplay_curobj() |
13 | } | |
14 | } else { | |
15 | /* editing an object, just refresh it as is */ | |
16 | - (*canvas_ref_proc)(cur_x, cur_y); | |
17 | + if (canvas_ref_proc) (*canvas_ref_proc)(cur_x, cur_y); | |
18 | } | |
19 | } | |
20 |