diff options
Diffstat (limited to 'basegfx/inc/basegfx/range/basicbox.hxx')
-rw-r--r-- | basegfx/inc/basegfx/range/basicbox.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/basegfx/inc/basegfx/range/basicbox.hxx b/basegfx/inc/basegfx/range/basicbox.hxx index 6c7606748420..a6eae3a628f2 100644 --- a/basegfx/inc/basegfx/range/basicbox.hxx +++ b/basegfx/inc/basegfx/range/basicbox.hxx @@ -35,12 +35,11 @@ namespace basegfx { - /** Specialization of BasicRange, handling the inside predicates + /** Explicitely different from BasicRange, handling the inside predicates differently. - This template considers the rightmost and bottommost border as - <em>outside</em> of the range, in contrast to BasicRange, - which considers them inside. + This is modelled after how polygon fill algorithms set pixel - + typically excluding rightmost and bottommost ones. */ class BASEGFX_DLLPUBLIC BasicBox : public BasicRange< sal_Int32, Int32Traits > { @@ -56,9 +55,9 @@ namespace basegfx { } - BasicBox(const BasicBox& rBox) : - Base( rBox ) + bool isEmpty() const { + return mnMinimum >= mnMaximum; } double getCenter() const |