File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -509,12 +509,15 @@ void MovingPixelsState::onBeforeCommandExecution(CommandExecutionEvent& ev)
509
509
// We don't need to drop the pixels if a MoveMaskCommand of Content is executed.
510
510
if (MoveMaskCommand* moveMaskCmd = dynamic_cast <MoveMaskCommand*>(command)) {
511
511
if (moveMaskCmd->getTarget () == MoveMaskCommand::Content) {
512
- // Do not drop pixels
512
+ gfx:: Point delta = moveMaskCmd-> getMoveThing (). getDelta ( UIContext::instance ());
513
513
// Verify Shift condition of the MoveMaskCommand (i.e. wrap = true)
514
514
if (moveMaskCmd->isWrap ()) {
515
- gfx::Point delta = moveMaskCmd->getMoveThing ().getDelta (UIContext::instance ());
516
- m_pixelsMovement->shift (delta.x , delta.y );
515
+ m_pixelsMovement->shift (delta.x , delta.y );
517
516
}
517
+ else {
518
+ translate (delta);
519
+ }
520
+ // We've processed the selection content movement right here.
518
521
ev.cancel ();
519
522
return ;
520
523
}
You can’t perform that action at this time.
0 commit comments