diff options
-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 |