summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/mtfrenderer/textaction.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx
index 51554a2e3595..442a09b6170a 100644
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -157,9 +157,7 @@ namespace cppcanvas
return tools::createTextLinesPolyPolygon(
0.0,
// extract character cell furthest to the right
- *(std::max_element(
- rOffsets.getConstArray(),
- rOffsets.getConstArray() + rOffsets.getLength() )),
+ *(std::max_element( rOffsets.begin(), rOffsets.end() )),
rTextLineInfo );
}