override public bool Execute() { bool nonEmpty; Rectangle rectangle = ActiveImage.Selection.Bounds(out nonEmpty); if (nonEmpty) { ActiveDrawable.EditCut(); ActiveDrawable.EditPaste(false); ActiveImage.FloatingSelection.Offsets = new Offset(rectangle.X1, rectangle.Y1); Layer layer = ActiveImage.FloatingSelection.ToLayer(); // Fix me: why can't I use layer here? new Layer(ActiveImage.ActiveDrawable).ResizeToImageSize(); } else { // TODO: what does PS handle this? } return(true); }
override public bool Execute() { ActiveDrawable.EditCut(); return(true); }