diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-24 15:06:10 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-04-25 14:51:30 +0200 |
commit | 3673a864c29bf0f65a5b7d69c7544ba054d01381 (patch) | |
tree | b16e85e53c75f251f98feed419aaa5a811d49acd | |
parent | 2bde5822604f0cd7f52e2a72899b8464ae7d2d5d (diff) |
ofz#1220 sanitize nTyp to legal values
Change-Id: Iad71c4f79dbe03e2e325453eb0506a2d92d67c2d
Reviewed-on: https://gerrit.libreoffice.org/36894
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 72ee4ea7d805..eff857945ee2 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -1301,7 +1301,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; } |