From 756ce2680190e9c93736972c21d8113418947233 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 27 Nov 2010 16:21:08 +0100 Subject: [PATCH] Resolves: rhbz#657541 don't crash during processing of auto. styles when joining paragraphs --- libreoffice.spec | 6 +++++- ...org-3.3.0.rhbz657541.join-paragraphs.patch | 21 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 openoffice.org-3.3.0.rhbz657541.join-paragraphs.patch diff --git a/libreoffice.spec b/libreoffice.spec index 58c9a64..fe88a5e 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -97,6 +97,7 @@ Patch13: qstart.dont-forceenabled-on-post-reg-restart.patch Patch14: libreoffice-installfix.patch Patch15: exit.quickstarter.when.deleted.patch Patch16: 0001-destroydesktop.in.timeout.patch +Patch17: openoffice.org-3.3.0.rhbz657541.join-paragraphs.patch %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %define instdir %{_libdir} @@ -710,6 +711,7 @@ cp -p %{SOURCE20} external/unowinreg/unowinreg.dll %patch14 -p1 -b .libreoffice-installfix.patch %patch15 -p1 -b .exit.quickstarter.when.deleted.patch %patch16 -p1 -b .0001-destroydesktop.in.timeout.patch +%patch17 -p1 -b .rhbz657541.join-paragraphs.patch touch scripting/source/pyprov/delzip touch scripting/util/provider/beanshell/delzip touch scripting/util/provider/javascript/delzip @@ -2014,9 +2016,11 @@ update-desktop-database %{_datadir}/applications &> /dev/null || : %changelog -* Fri Nov 26 2010 Caolán McNamara 3.2.99.3-2 +* Sat Nov 27 2010 Caolán McNamara 3.2.99.3-2 - Resolves: rhbz#610103 exit quickstarter when libs deleted - Resolves: rhbz#652695 release desktop in timeout +- Resolves: rhbz#657541 don't crash during processing of auto. styles + when joining paragraphs (dtardon) * Thu Nov 18 2010 Caolán McNamara Which()); + if (CharFmt::IsItemIncluded(nWhich, pAutoStyle)) +@@ -2170,7 +2170,7 @@ + o_rClearIds.reserve(i_rAttrSet.Count()); + SfxItemIter aIter(i_rAttrSet); + const SfxPoolItem* pItem(aIter.GetCurItem()); +- while (true) ++ while (pItem) + { + o_rClearIds.push_back(pItem->Which()); +