[Libreoffice-commits] core.git: vcl/source

Tamas Bunth tamas.bunth at collabora.co.uk
Sun Feb 25 18:21:04 UTC 2018


 vcl/source/gdi/sallayout.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8d42909cd326cb26d8ba1fb383b5578f820c72ed
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date:   Fri Feb 23 17:32:15 2018 +0100

    tdf#115353 layout fix
    
    Change-Id: I085b330e6539adb8b924f4d7f4cd10fb593a0da6
    Reviewed-on: https://gerrit.libreoffice.org/50257
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tamás Bunth <btomi96 at gmail.com>

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;
             }
         }


More information about the Libreoffice-commits mailing list