Bugfix 21333

"Continuous grab": the boundary is now set to Area (editor), making it work
for operators started in other regions (like toolbar, or in quad view case)
This commit is contained in:
2010-12-15 15:28:03 +00:00
parent 0efdb860f1
commit 95f205ed5c

View File

@@ -683,12 +683,12 @@ int wm_operator_invoke(bContext *C, wmOperatorType *ot, wmEvent *event, PointerR
} }
if(wrap) { if(wrap) {
ARegion *ar= CTX_wm_region(C); ScrArea *sa= CTX_wm_area(C);
if(ar) { if(sa) {
bounds[0]= ar->winrct.xmin; bounds[0]= sa->totrct.xmin;
bounds[1]= ar->winrct.ymax; bounds[1]= sa->totrct.ymax;
bounds[2]= ar->winrct.xmax; bounds[2]= sa->totrct.xmax;
bounds[3]= ar->winrct.ymin; bounds[3]= sa->totrct.ymin;
} }
} }