Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fe8a181 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

oops forgot these changes in the previous merge. fixes build

parent 2da99bda
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ public:
    int right;
    int bottom;

    typedef int value_type;

    // we don't provide copy-ctor and operator= on purpose
    // because we want the compiler generated versions

@@ -47,6 +49,10 @@ public:

    void makeInvalid();

    inline void clear() {
        left = top = right = bottom = 0;
    }

    // a valid rectangle has a non negative width and height
    inline bool isValid() const {
        return (width()>=0) && (height()>=0);