~ubuntu-branches/ubuntu/quantal/shotwell/quantal

« back to all changes in this revision

Viewing changes to src/direct/DirectPhoto.vala

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-02-21 13:52:58 UTC
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20120221135258-ao9jiib5qicomq7q
Tags: upstream-0.11.92
ImportĀ upstreamĀ versionĀ 0.11.92

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 Lesser General Public License
4
4
 * (version 2.1 or later).  See the COPYING file in this distribution. 
31
31
    // Gets the dimensions of this photo's pixbuf when scaled to original
32
32
    // size and saves them where get_raw_dimensions can find them.
33
33
    private void save_dims() {
34
 
        try {
35
 
            backing_photo_row.dim = Dimensions.for_pixbuf(get_pixbuf(Scaling.for_original()));
 
34
        try {                                                                       
 
35
            backing_photo_row.dim = Dimensions.for_pixbuf(get_pixbuf_with_options(Scaling.for_original(),
 
36
                Exception.CROP | Exception.STRAIGHTEN | Exception.ORIENTATION));
36
37
        } catch (Error e) {
37
38
            warning("Dimensions for image %s could not be gotten.", to_string());
38
39
        }