sw/source/filter/ww8/ww8graf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 00ff43f12d6ecb811b48d4d235fd4ddc9922d0f0 Author: Caolán McNamara <[email protected]> Date: Mon Apr 24 15:06:10 2017 +0100 ofz#1220 sanitize nTyp to legal values Change-Id: Iad71c4f79dbe03e2e325453eb0506a2d92d67c2d Reviewed-on: https://gerrit.libreoffice.org/36895 Reviewed-by: Michael Stahl <[email protected]> Reviewed-by: Christian Lohmaier <[email protected]> Reviewed-by: Markus Mohrhard <[email protected]> Tested-by: Markus Mohrhard <[email protected]> diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 718faff1c16c..bd1a8ca64cad 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -1294,7 +1294,7 @@ SdrObject* SwWW8ImplReader::ReadCaptionBox(WW8_DPHEAD* pHd, SfxAllItemSet &rSet) else // nein -> Nimm Linie SetStdAttr( rSet, aCallB.dpPolyLine.aLnt, aCallB.dptxbx.aShd ); SetFill( rSet, aCallB.dptxbx.aFill ); - rSet.Put( SdrCaptionTypeItem( aCaptA[nTyp] ) ); + rSet.Put(SdrCaptionTypeItem(aCaptA[nTyp % SAL_N_ELEMENTS(aCaptA)])); return pObj; }
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
