From 1b42acdaeae134f94580d6e1eba89da16741d596 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 6 Sep 2014 16:13:09 +0200 Subject: vcl: use DeviceCoordinate for GetCaretPositions in sallayout Change-Id: I5a959e1c3806da713e106c1b0fc8690a6578987b --- vcl/source/glyphs/graphite_layout.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/glyphs') diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx index 6f7cbb252ab0..508a0db1d733 100644 --- a/vcl/source/glyphs/graphite_layout.cxx +++ b/vcl/source/glyphs/graphite_layout.cxx @@ -1090,14 +1090,14 @@ void GraphiteLayout::kashidaJustify(std::vector& rDeltaWidths, sal_GlyphId } -void GraphiteLayout::GetCaretPositions( int nArraySize, long* pCaretXArray ) const +void GraphiteLayout::GetCaretPositions( int nArraySize, DeviceCoordinate* pCaretXArray ) const { // For each character except the last discover the caret positions // immediately before and after that character. // This is used for underlines in the GUI amongst other things. // It may be used from MultiSalLayout, in which case it must take into account // glyphs that have been moved. - std::fill(pCaretXArray, pCaretXArray + nArraySize, -1); + std::fill(pCaretXArray, pCaretXArray + nArraySize, (DeviceCoordinate)-1); // the layout method doesn't modify the layout even though it isn't // const in the interface bool bRtl = (mnLayoutFlags & SAL_LAYOUT_BIDI_RTL);//const_cast(this)->maLayout.rightToLeft(); -- cgit v1.2.3