~ubuntu-branches/ubuntu/saucy/shotwell/saucy-proposed

« back to all changes in this revision

Viewing changes to src/Commands.vala

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-02-21 13:52:58 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120221135258-uffg1nm9ifpy2yoh
Tags: 0.11.92-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2009-2011 Yorba Foundation
 
1
/* Copyright 2009-2012 Yorba Foundation
2
2
 *
3
3
 * This software is licensed under the GNU LGPL (version 2.1 or later).
4
4
 * See the COPYING file in this distribution. 
722
722
 
723
723
public class StraightenCommand : GenericPhotoTransformationCommand {
724
724
    private double theta;
 
725
    private Box crop;   // straightening can change the crop rectangle
725
726
    
726
 
    public StraightenCommand(Photo photo, double theta, string name, string explanation) {
 
727
    public StraightenCommand(Photo photo, double theta, Box crop, string name, string explanation) {
727
728
        base(photo, name, explanation);
728
729
        
729
730
        this.theta = theta;
 
731
        this.crop = crop;
730
732
    }
731
733
    
732
734
    public override void execute_on_photo(Photo photo) {
733
735
        photo.set_straighten(theta);
 
736
        photo.set_crop(crop);
734
737
    }
735
738
}
736
739