diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2011-11-03 14:58:40 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-11-03 15:02:00 +0100 |
commit | f7975d2335334899e5d14e35e7640d3afdf220f6 (patch) | |
tree | 2c97dc4a14afce606d8f68ee28777c917371ab17 /basebmp/test/polytest.cxx | |
parent | 3e8dee1a48bd80c52b5adda6bd9358c2136ea764 (diff) |
Fix one more subtlety around B2IBox / B2IRange changes.
The Cohen/Sutherland clip flag routine was not aware of B2IBox,
thusly yielding incorrect line clipping for BitmapDevice software
rendering. Cleaned that up, added some more unit tests around the
problem, and removed the now-extraneous maLineClip member from the
bitmap device.
Diffstat (limited to 'basebmp/test/polytest.cxx')
-rw-r--r-- | basebmp/test/polytest.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/basebmp/test/polytest.cxx b/basebmp/test/polytest.cxx index 177557cec565..8cc51d4921ee 100644 --- a/basebmp/test/polytest.cxx +++ b/basebmp/test/polytest.cxx @@ -192,6 +192,8 @@ private: BitmapDeviceSharedPtr pClippedDevice( subsetBitmapDevice( rDevice, basegfx::B2IBox(3,3,5,8) )); + CPPUNIT_ASSERT_MESSAGE("size of subsetted device is not (2,5)", + pClippedDevice->getSize() == basegfx::B2IVector(2,5)); rDevice->clear(aBgCol); pClippedDevice->fillPolyPolygon( |