diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/gen.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index d298e6be4c77..021e421c3b80 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -266,5 +266,14 @@ long tools::Rectangle::AdjustRight(long nHorzMoveDelta) return nRight; } +long tools::Rectangle::AdjustBottom( long nVertMoveDelta ) +{ + if (nBottom == RECT_EMPTY) + nBottom = nTop + nVertMoveDelta - 1; + else + nBottom += nVertMoveDelta; + return nBottom; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |