diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 17:44:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-27 08:55:56 +0100 |
commit | 7af733d9ef65fddd12ef5fae82808ba2f7f608df (patch) | |
tree | 360afc7f8c5b7963730885255f631c9896f683b4 /include/basegfx | |
parent | 05f5c4d4d6addf5321a40595f598e55dce376f6f (diff) |
tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
Diffstat (limited to 'include/basegfx')
-rw-r--r-- | include/basegfx/raster/bpixelraster.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/basegfx/raster/bpixelraster.hxx b/include/basegfx/raster/bpixelraster.hxx index cac92e7a9cba..8d250495cf53 100644 --- a/include/basegfx/raster/bpixelraster.hxx +++ b/include/basegfx/raster/bpixelraster.hxx @@ -81,14 +81,14 @@ namespace basegfx // data access read only const BPixel& getBPixel(sal_uInt32 nIndex) const { - assert(nIndex < mnCount); //Access out of range + assert(nIndex < mnCount && "Access out of range"); return mpContent[nIndex]; } // data access read/write BPixel& getBPixel(sal_uInt32 nIndex) { - assert(nIndex < mnCount); //Access out of range + assert(nIndex < mnCount && "Access out of range"); return mpContent[nIndex]; } }; |