]> git.lyx.org Git - lyx.git/commitdiff
Fix embarrassing typo
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Dec 2018 11:28:32 +0000 (12:28 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Dec 2018 16:22:42 +0000 (17:22 +0100)
Not clear whether this caused any bug.

(cherry picked from commit 058c6750ac83b43819445ccf723283afb850ef91)

src/Dimension.h

index 0607be6eba20e222f1eda6a18d43f4b34d5a13dc..0f7fdabcef320e7a532b5aac685687b95f9ec53b 100644 (file)
@@ -32,8 +32,8 @@ public:
        void operator+=(Dimension const & dim);
        /// set to empty box
        void clear() { wid = asc = des = 0; }
-       /// check if box is empty
-       bool empty() const { return wid == 0 && asc == 0 && wid == 0; }
+       /// check whether box is empty
+       bool empty() const { return wid == 0 && asc == 0 && des == 0; }
        /// get height
        int height() const { return asc + des; }
        /// get ascent