From 5d390df540c19b88814d22a2e8b0dab86af17541 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 12 Jul 2019 17:06:28 +0200 Subject: make tools::Rectangle::Bottom return Top when empty Change-Id: Ia424b91149245907b045b43aa31a622e34e6e5bc Reviewed-on: https://gerrit.libreoffice.org/75504 Tested-by: Jenkins Reviewed-by: Noel Grandin --- tools/source/generic/gen.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index 459687dc961a..3783fa347c55 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -18,6 +18,7 @@ */ #include +#include #include #include @@ -297,4 +298,9 @@ long tools::Rectangle::Right() const return nRight == RECT_EMPTY ? nLeft : nRight; } +long tools::Rectangle::Bottom() const +{ + return nBottom == RECT_EMPTY ? nTop : nBottom; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit