summaryrefslogtreecommitdiff
path: root/src/page-view.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-04-27 08:18:24 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-04-27 08:18:24 +0200
commit36e384f7f5dc6b4ba03048a261bee37225c3d856 (patch)
treea9eabcee4fb9379440b5518f9b4be1d8537a6ff1 /src/page-view.vala
parent654b0df859d8bd2723bd1508a3e48d0d30a0ef0d (diff)
parentda62a01238b3d57d39616bfad82bf9a6fb2ac114 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/page-view.vala')
-rw-r--r--src/page-view.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/page-view.vala b/src/page-view.vala
index 03fecfb..abe5e69 100644
--- a/src/page-view.vala
+++ b/src/page-view.vala
@@ -23,7 +23,7 @@ public enum CropLocation
BOTTOM_RIGHT
}
-public class PageView
+public class PageView : Object
{
/* Page being rendered */
public Page page { get; private set; }
@@ -563,7 +563,7 @@ public class PageView
private CropLocation get_crop_location (int x, int y)
{
if (!page.has_crop)
- return 0;
+ return CropLocation.NONE;
var cx = page.crop_x;
var cy = page.crop_y;