summaryrefslogtreecommitdiff
path: root/tools/source/generic/gen.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/generic/gen.cxx')
-rw-r--r--tools/source/generic/gen.cxx6
1 files changed, 6 insertions, 0 deletions
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 <sal/config.h>
+#include <sal/log.hxx>
#include <algorithm>
#include <cassert>
@@ -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: */