summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/gen.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index 021e421c3b80..db7980ea100a 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -275,5 +275,12 @@ long tools::Rectangle::AdjustBottom( long nVertMoveDelta )
return nBottom;
}
+void tools::Rectangle::setX( long x )
+{
+ if (nRight != RECT_EMPTY)
+ nRight += x - nLeft;
+ nLeft = x;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */