diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-06 16:13:09 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-12 01:45:27 +0200 |
commit | 1b42acdaeae134f94580d6e1eba89da16741d596 (patch) | |
tree | 882710be2c142cdef62823c9600925ee22f8dab7 /vcl/source/glyphs | |
parent | 43638d8428abb8358a703247651fbfc72e47ff72 (diff) |
vcl: use DeviceCoordinate for GetCaretPositions in sallayout
Change-Id: I5a959e1c3806da713e106c1b0fc8690a6578987b
Diffstat (limited to 'vcl/source/glyphs')
-rw-r--r-- | vcl/source/glyphs/graphite_layout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<int>& 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<GraphiteLayout*>(this)->maLayout.rightToLeft(); |