Fix performance bug in previous commit (pre-scale was also performed when entering other tools than 'brush rotate')

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1790 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2011-06-04 15:25:06 +00:00
parent 2d8c061e32
commit 8cf7e1096f

View File

@ -70,6 +70,10 @@ void Start_operation_stack(word new_operation)
case OPERATION_GRAB_BRUSH:
case OPERATION_POLYBRUSH:
case OPERATION_STRETCH_BRUSH:
Operation_before_interrupt=Current_operation;
// On passe à l'operation demandée
Current_operation=new_operation;
break;
case OPERATION_ROTATE_BRUSH:
Begin_brush_rotation();
Operation_before_interrupt=Current_operation;