diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/gen.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index 020be91ac3c0..d298e6be4c77 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -257,6 +257,14 @@ void tools::Rectangle::shrink(long nShrinkBy) nBottom -= nShrinkBy; } +long tools::Rectangle::AdjustRight(long nHorzMoveDelta) +{ + if (nRight == RECT_EMPTY) + nRight = nLeft + nHorzMoveDelta - 1; + else + nRight += nHorzMoveDelta; + return nRight; +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |