diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-19 14:10:22 -0500 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-19 14:13:48 -0500 |
commit | 913554d500166983b6b8d76506fb38d467986dd4 (patch) | |
tree | b3b95b652548e2fc6ef9720f163eec611d43a91c | |
parent | vcl: Apply the OutputDevice transformation to the gradient clipping polygon (diff) | |
download | core-913554d500166983b6b8d76506fb38d467986dd4.tar.gz core-913554d500166983b6b8d76506fb38d467986dd4.zip |
vcl: Actually returns the number of rectangles for the RegionBand
Change-Id: I6be30b28fa608855919890dc47145ef5a3648021
-rw-r--r-- | vcl/inc/regionband.hxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/regionband.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/regionband.hxx b/vcl/inc/regionband.hxx index 5676329cf9f6..277e2c7064b6 100644 --- a/vcl/inc/regionband.hxx +++ b/vcl/inc/regionband.hxx @@ -73,7 +73,7 @@ public: void XOr(const RegionBand& rSource); Rectangle GetBoundRect() const; bool IsInside(const Point& rPoint) const; - sal_uInt32 getRectangleCount() const; // only users are Region::Intersect and PSWriter::ImplBmp + sal_uInt32 getRectangleCount() const; // only users are Region::Intersect, Region::IsRectangle and PSWriter::ImplBmp void GetRegionRectangles(RectangleVector& rTarget) const; }; diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx index a7d109f72dd7..5e1492cda566 100644 --- a/vcl/source/gdi/regionband.cxx +++ b/vcl/source/gdi/regionband.cxx @@ -1259,7 +1259,7 @@ sal_uInt32 RegionBand::getRectangleCount() const pBand = pBand->mpNextBand; } - return 0; + return nCount; } #ifdef DBG_UTIL |