File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,13 @@ void input_refit(WInput *input)
76
76
}
77
77
78
78
79
- void input_fitrep (WInput * input , WWindow * par , const WFitParams * fp )
79
+ bool input_fitrep (WInput * input , WWindow * par , const WFitParams * fp )
80
80
{
81
+ if (par != NULL && !region_same_rootwin ((WRegion * )input , (WRegion * )par ))
82
+ return FALSE;
81
83
input -> last_fp = * fp ;
82
84
input_do_refit (input , par );
85
+ return TRUE;
83
86
}
84
87
85
88
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ DECLCLASS(WInput){
25
25
extern bool input_init (WInput * input , WWindow * par , const WFitParams * fp );
26
26
extern void input_deinit (WInput * input );
27
27
28
- extern void input_fitrep (WInput * input , WWindow * par , const WFitParams * fp );
28
+ extern bool input_fitrep (WInput * input , WWindow * par , const WFitParams * fp );
29
29
extern void input_refit (WInput * input );
30
30
extern void input_cancel (WInput * input );
31
31
extern bool input_rqclose (WInput * input );
You can’t perform that action at this time.
0 commit comments