File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1331,6 +1331,18 @@ Parse_stat MCFlip::parse(MCScriptPoint &sp)
13311331 const LT *te;
13321332 initpoint (sp);
13331333
1334+ // Allow flipping the portion currently selected with the Select paint tool
1335+ // In this case an image is not specified, i.e. "flip vertical"
1336+ if (sp.next (type) == PS_NORMAL && sp.lookup (SP_FLIP , te) == PS_NORMAL )
1337+ {
1338+ direction = (Flip_dir)te->which ;
1339+ return PS_NORMAL ;
1340+ }
1341+
1342+ else
1343+ sp.backup ();
1344+
1345+
13341346 // PM-2015-08-07: [[ Bug 1751 ]] Allow more flexible parsing: 'flip the selobj ..', 'flip last img..' etc
13351347
13361348 // Parse an arbitrary chunk. If it does not resolve as an image, a runtime error will occur in MCFlip::exec
@@ -1341,6 +1353,7 @@ Parse_stat MCFlip::parse(MCScriptPoint &sp)
13411353 return PS_ERROR ;
13421354 }
13431355
1356+
13441357 if (sp.next (type) != PS_NORMAL || sp.lookup (SP_FLIP , te) != PS_NORMAL )
13451358 {
13461359 MCperror->add
You can’t perform that action at this time.
0 commit comments