summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-09 13:33:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-09 14:36:02 +0200
commit77ca41321193ddfaa0ca05d1fa43f3b614209a61 (patch)
treedfd613d15efc25142b38a23b8c61c90826f70c91 /include/tools
parent98df07a89dbdef020c7cd849861c5aa426021153 (diff)
make tools::Rectangle::shrink respect empty state
and make non-inline so it is easy to disable this for debugging, if need be Change-Id: Id529037e82b2fdd8c2120877a44fc7e069fc8406 Reviewed-on: https://gerrit.libreoffice.org/75298 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/gen.hxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 56af47582a7f..897db7a25f79 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -471,7 +471,7 @@ public:
* Expands the rectangle in all directions by the input value.
*/
void expand(long nExpandBy);
- inline void shrink(long nShrinkBy);
+ void shrink(long nShrinkBy);
/**
* Sanitizing variants for handling data from the outside
@@ -722,14 +722,6 @@ inline Rectangle operator - ( const Rectangle& rRect, const Point& rPt )
}
}
-inline void tools::Rectangle::shrink(long nShrinkBy)
-{
- nLeft += nShrinkBy;
- nTop += nShrinkBy;
- nRight -= nShrinkBy;
- nBottom -= nShrinkBy;
-}
-
template< typename charT, typename traits >
inline std::basic_ostream<charT, traits> & operator <<(
std::basic_ostream<charT, traits> & stream, const tools::Rectangle& rectangle )