diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/gen.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index db7980ea100a..1b9e4a0d733f 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -282,5 +282,11 @@ void tools::Rectangle::setX( long x ) nLeft = x; } +void tools::Rectangle::setY( long y ) +{ + if (nBottom != RECT_EMPTY) + nBottom += y - nTop; + nTop = y; +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |