diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2018-02-23 17:32:15 +0100 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2018-02-25 19:20:43 +0100 |
commit | 8d42909cd326cb26d8ba1fb383b5578f820c72ed (patch) | |
tree | 5fcdcbacd64f2cb382797c8ea28ead79c974138b /vcl | |
parent | a7d7b2b49e6b63cdf22be823b8eb6e4c0ec8191f (diff) |
tdf#115353 layout fix
Change-Id: I085b330e6539adb8b924f4d7f4cd10fb593a0da6
Reviewed-on: https://gerrit.libreoffice.org/50257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index 4404f3fcdeb0..65bd59b57951 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -1232,7 +1232,7 @@ void MultiSalLayout::AdjustLayout( ImplLayoutArgs& rArgs ) rArgs.mnEndCharPos : rArgs.mnMinCharPos - 1; int nRunVisibleEndChar = pGlyphs[nFirstValid]->mnCharPos; // merge the fallback levels - while( nValid[0] && (nLevel > 0)) + while( nValid[nFirstValid] && (nLevel > 0)) { // find best fallback level for( n = 0; n < nLevel; ++n ) @@ -1267,7 +1267,7 @@ void MultiSalLayout::AdjustLayout( ImplLayoutArgs& rArgs ) nStartOld[0] = nStartNew[0]; nValid[nFirstValid] = mpLayouts[0]->GetNextGlyphs(1, &pGlyphs[nFirstValid], aPos, nStartNew[0]); - if( !nValid[0] ) + if( !nValid[nFirstValid] ) break; } } |