- bug fix #3380, patch provided by Ken Hughes, thanks

This commit is contained in:
Jiri Hnidek
2005-11-17 20:35:03 +00:00
parent e700e0c4f9
commit a2ac524c10

View File

@@ -2946,8 +2946,9 @@ static void splitarea_interactive(ScrArea *area, ScrEdge *onedge)
if((mval[0] > scr->v1->vec.x) && (mval[0] < scr->v4->vec.x) &&
(mval[1] < scr->v2->vec.y) && (mval[1] > scr->v1->vec.y)){
/* test: is ScreenArea enough big for splitting */
split= testsplitpoint(scr, dir, fac);
if(split){
short tsplit= testsplitpoint(scr, dir, fac);
if(tsplit){
split = tsplit;
/* delete old line from previous ScreenArea */
if(!first) scrarea_draw_splitpoint(sa, dir, fac);
sa= scr;