This repository was archived by the owner on Sep 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1298,6 +1298,8 @@ Parse_stat MCFlip::parse(MCScriptPoint &sp)
1298
1298
Exec_stat MCFlip::exec (MCExecPoint &ep)
1299
1299
{
1300
1300
bool t_created_selection;
1301
+ MColdtool = MCcurtool;
1302
+
1301
1303
if (image != NULL )
1302
1304
{
1303
1305
MCObject *optr;
@@ -1313,22 +1315,23 @@ Exec_stat MCFlip::exec(MCExecPoint &ep)
1313
1315
return ES_ERROR;
1314
1316
}
1315
1317
MCImage *iptr = (MCImage *)optr;
1316
- MColdtool = MCcurtool;
1317
1318
iptr->selimage ();
1318
1319
t_created_selection = true ;
1319
1320
}
1320
1321
else
1321
1322
t_created_selection = false ;
1322
1323
1323
1324
if (MCactiveimage != NULL )
1325
+ {
1324
1326
MCactiveimage->flipsel (direction == FL_HORIZONTAL);
1325
1327
1326
- if (t_created_selection)
1327
- {
1328
- MCcurtool = MColdtool;
1329
- MCactiveimage -> endsel ();
1328
+ // IM-2013-06-28: [[ Bug 10999 ]] ensure MCactiveimage is not null when calling endsel() method
1329
+ if (t_created_selection)
1330
+ MCactiveimage -> endsel ();
1330
1331
}
1331
1332
1333
+ MCcurtool = MColdtool;
1334
+
1332
1335
return ES_NORMAL;
1333
1336
}
1334
1337
You can’t perform that action at this time.
0 commit comments