[poppler] poppler/Page.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Mar 28 23:04:59 UTC 2020
poppler/Page.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4b56adac660e9b0620f5345edb9eef5546de51f6
Author: Albert Astals Cid <aacid at kde.org>
Date: Sat Mar 28 23:59:34 2020 +0100
Make some PDFRectangle methods const
diff --git a/poppler/Page.h b/poppler/Page.h
index 3e4b341a..e5d59449 100644
--- a/poppler/Page.h
+++ b/poppler/Page.h
@@ -20,7 +20,7 @@
// Copyright (C) 2007 Julien Rebetez <julienr at svn.gnome.org>
// Copyright (C) 2008 Iñigo Martínez <inigomartinez at gmail.com>
// Copyright (C) 2012 Fabio D'Urso <fabiodurso at hotmail.it>
-// Copyright (C) 2012, 2017, 2018 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2012, 2017, 2018, 2020 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2013 Thomas Freitag <Thomas.Freitag at alfa.de>
// Copyright (C) 2013, 2017 Adrian Johnson <ajohnson at redneon.com>
// Copyright (C) 2018 Adam Reichold <adam.reichold at t-online.de>
@@ -61,8 +61,8 @@ public:
PDFRectangle() { x1 = y1 = x2 = y2 = 0; }
PDFRectangle(double x1A, double y1A, double x2A, double y2A)
{ x1 = x1A; y1 = y1A; x2 = x2A; y2 = y2A; }
- bool isValid() { return x1 != 0 || y1 != 0 || x2 != 0 || y2 != 0; }
- bool contains(double x, double y) { return x1 <= x && x <= x2 && y1 <= y && y <= y2; }
+ bool isValid() const { return x1 != 0 || y1 != 0 || x2 != 0 || y2 != 0; }
+ bool contains(double x, double y) const { return x1 <= x && x <= x2 && y1 <= y && y <= y2; }
void clipTo(PDFRectangle *rect);
bool operator==(const PDFRectangle &rect) const { return x1 == rect.x1 && y1 == rect.y1 && x2 == rect.x2 && y2 == rect.y2; }
More information about the poppler
mailing list