Commit deee14d6 authored by Jim Nelson's avatar Jim Nelson

Exeption enum was accepted as int for get_pixbuf() parameter ... caused adjust...

Exeption enum was accepted as int for get_pixbuf() parameter ... caused adjust tool to display psychadelic 
image.
parent 3f12a8cc
......@@ -492,7 +492,8 @@ public class CropTool : EditingTool {
public override Gdk.Pixbuf? get_unscaled_pixbuf(Photo photo) {
// show the uncropped photo for editing, but return null if no crop so the current pixbuf
// is used
return photo.has_crop() ? photo.get_pixbuf(PhotoTransformer.Exception.CROP) : null;
return photo.has_crop() ? photo.get_pixbuf(PhotoTransformer.SCREEN,
PhotoTransformer.Exception.CROP) : null;
}
private void prepare_gc(Gdk.GC default_gc, Gdk.Drawable drawable) {
......@@ -1435,7 +1436,7 @@ public class AdjustTool : EditingTool {
}
public override Gdk.Pixbuf? get_unscaled_pixbuf(Photo photo) {
return photo.get_pixbuf(PhotoTransformer.Exception.ADJUST);
return photo.get_pixbuf(PhotoTransformer.SCREEN, PhotoTransformer.Exception.ADJUST);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment