From 583d3ad9dd143024032455da5c9124aee84b680a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 10 Mar 2014 11:47:19 +0100 Subject: [PATCH] Resolves: rhbz#988516 rhbz#1072553 rhbz#1072607 rhbz#1043551 - Resolves: rhbz#988516: DOCX import: fix context stack when importing header - Resolves: rhbz#1072553: Fix deselection problems of template view - Resolves: rhbz#1072607: fix crash in SvxRuler::MouseMove() - Resolves: rhbz#1043551: sw: avoid division-by-0 in Text Grid painting code --- ...072553-Fix-deselection-problems-of-t.patch | 72 ++++ ...avoid-division-by-0-in-Text-Grid-pai.patch | 51 +++ ...efully-fix-crash-in-SvxRuler-MouseMo.patch | 39 +++ ...-import-fix-context-stack-when-impor.patch | 321 ++++++++++++++++++ libreoffice.spec | 12 +- 5 files changed, 494 insertions(+), 1 deletion(-) create mode 100644 0001-fdo-74787-rhbz-1072553-Fix-deselection-problems-of-t.patch create mode 100644 0001-rhbz-1043551-sw-avoid-division-by-0-in-Text-Grid-pai.patch create mode 100644 0001-rhbz-1072607-hopefully-fix-crash-in-SvxRuler-MouseMo.patch create mode 100644 0002-rhbz-988516-DOCX-import-fix-context-stack-when-impor.patch diff --git a/0001-fdo-74787-rhbz-1072553-Fix-deselection-problems-of-t.patch b/0001-fdo-74787-rhbz-1072553-Fix-deselection-problems-of-t.patch new file mode 100644 index 0000000..d582773 --- /dev/null +++ b/0001-fdo-74787-rhbz-1072553-Fix-deselection-problems-of-t.patch @@ -0,0 +1,72 @@ +From b071644756772d0b6930ac2e6d27237b67e7febc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolnai=20Tam=C3=A1s?= +Date: Fri, 7 Mar 2014 10:57:52 +0100 +Subject: [PATCH 1/2] fdo#74787, rhbz#1072553: Fix deselection problems of + template view + +deselectItems() were added to make recent docs +view work, but it is unneccessary to +affect template view too. + +(regression from 0314034d8b23d5b69399cfcdf6b2f2add73f9f47) + +Conflicts: + sfx2/source/control/recentdocsview.cxx + +Change-Id: I0c805774321939991e308e9c8c669604e81dbad5 +Reviewed-on: https://gerrit.libreoffice.org/8490 +Tested-by: Michael Stahl +Reviewed-by: Michael Stahl +--- + include/sfx2/recentdocsview.hxx | 2 ++ + sfx2/source/control/recentdocsview.cxx | 7 +++++++ + sfx2/source/control/thumbnailview.cxx | 2 -- + 3 files changed, 9 insertions(+), 2 deletions(-) + +diff --git a/include/sfx2/recentdocsview.hxx b/include/sfx2/recentdocsview.hxx +index 1706935..d9ad72d 100644 +--- a/include/sfx2/recentdocsview.hxx ++++ b/include/sfx2/recentdocsview.hxx +@@ -66,6 +66,8 @@ protected: + void OpenItem( const ThumbnailViewItem *pItem ); + virtual void Paint( const Rectangle& rRect ); + ++ virtual void LoseFocus(); ++ + bool isAcceptedFile(const OUString &rURL) const; + + long mnItemMaxSize; +diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx +index e462172..13f7dc3 100644 +--- a/sfx2/source/control/recentdocsview.cxx ++++ b/sfx2/source/control/recentdocsview.cxx +@@ -302,6 +302,13 @@ void RecentDocsView::Paint( const Rectangle &aRect ) + ThumbnailView::Paint(aRect); + } + ++void RecentDocsView::LoseFocus() ++{ ++ deselectItems(); ++ ++ ThumbnailView::LoseFocus(); ++} ++ + void RecentDocsView::SetThumbnailSize(long thumbnailSize) + { + mnItemMaxSize = thumbnailSize; +diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx +index 3c6d094..a4e38a7 100644 +--- a/sfx2/source/control/thumbnailview.cxx ++++ b/sfx2/source/control/thumbnailview.cxx +@@ -918,8 +918,6 @@ void ThumbnailView::GetFocus() + + void ThumbnailView::LoseFocus() + { +- deselectItems(); +- + Control::LoseFocus(); + + // Tell the accessible object that we lost the focus. +-- +1.8.3.1 + diff --git a/0001-rhbz-1043551-sw-avoid-division-by-0-in-Text-Grid-pai.patch b/0001-rhbz-1043551-sw-avoid-division-by-0-in-Text-Grid-pai.patch new file mode 100644 index 0000000..022df90 --- /dev/null +++ b/0001-rhbz-1043551-sw-avoid-division-by-0-in-Text-Grid-pai.patch @@ -0,0 +1,51 @@ +From 3ef19ef7c5de8db17c693e2db286f79efbd98d8d Mon Sep 17 00:00:00 2001 +From: Michael Stahl +Date: Fri, 7 Mar 2014 15:56:37 +0100 +Subject: [PATCH] rhbz#1043551: sw: avoid division-by-0 in Text Grid painting + code + +Possible to trigger with a document containing: + style:layout-grid-base-height="0cm" + +(cherry picked from commit 71b55cf57460aec3fec948676251448934ba31d1) + +got to love the sal_Int32 as long/int +(cherry picked from commit 18c89ae6ff01f3d555a7cb030eb4572d504e8de7) + +Change-Id: Id3bd1f29157b39e8a577be0b87b86236dbe5a50c +--- + sw/source/core/layout/atrfrm.cxx | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx +index b06cea4..3c40518 100644 +--- a/sw/source/core/layout/atrfrm.cxx ++++ b/sw/source/core/layout/atrfrm.cxx +@@ -2262,12 +2262,24 @@ bool SwTextGridItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) + bRet = (rVal >>= nTmp); + nTmp = MM100_TO_TWIP( nTmp ); + if( bRet && (nTmp >= 0) && ( nTmp <= USHRT_MAX) ) ++ { ++ // rhbz#1043551 round up to 5pt -- 0 causes divide-by-zero ++ // in layout; 1pt ties the painting code up in knots for ++ // minutes with bazillion lines... ++#define MIN_TEXTGRID_SIZE 100 + if( (nMemberId & ~CONVERT_TWIPS) == MID_GRID_BASEHEIGHT ) ++ { ++ nTmp = std::max(nTmp, MIN_TEXTGRID_SIZE); + SetBaseHeight( (sal_uInt16)nTmp ); ++ } + else if( (nMemberId & ~CONVERT_TWIPS) == MID_GRID_BASEWIDTH ) ++ { ++ nTmp = std::max(nTmp, MIN_TEXTGRID_SIZE); + SetBaseWidth( (sal_uInt16)nTmp ); ++ } + else + SetRubyHeight( (sal_uInt16)nTmp ); ++ } + else + bRet = false; + } +-- +1.8.3.1 + diff --git a/0001-rhbz-1072607-hopefully-fix-crash-in-SvxRuler-MouseMo.patch b/0001-rhbz-1072607-hopefully-fix-crash-in-SvxRuler-MouseMo.patch new file mode 100644 index 0000000..72c7529 --- /dev/null +++ b/0001-rhbz-1072607-hopefully-fix-crash-in-SvxRuler-MouseMo.patch @@ -0,0 +1,39 @@ +From 58d0ba47f82e264e9b17c0e0d37bc043126d195d Mon Sep 17 00:00:00 2001 +From: Michael Stahl +Date: Thu, 6 Mar 2014 22:25:55 +0100 +Subject: [PATCH] rhbz#1072607: (hopefully) fix crash in SvxRuler::MouseMove() +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Not sure why mpParaItem is 0 here, add a check like in every other +SvxRuler method. + +(regression from 47a77d7dbc427e51421e2df8d59695834cb74980) + +Change-Id: Ic11a4d0c9b6ca217cd59d1d3f6789592996d2c1d +(cherry picked from commit 958616a323b7fe6b42cd642394cd90a9cd82e7f9) +Reviewed-on: https://gerrit.libreoffice.org/8492 +Reviewed-by: Tomaž Vajngerl +Tested-by: Tomaž Vajngerl +--- + svx/source/dialog/svxruler.cxx | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx +index a41d0e0..ca16c17 100644 +--- a/svx/source/dialog/svxruler.cxx ++++ b/svx/source/dialog/svxruler.cxx +@@ -580,6 +580,9 @@ void SvxRuler::MouseMove( const MouseEvent& rMEvt ) + { + case RULER_TYPE_INDENT: + { ++ if (!mpParaItem.get()) ++ break; ++ + long nIndex = aSelection.nAryPos + INDENT_GAP; + + long nIndentValue = 0.0; +-- +1.8.3.1 + diff --git a/0002-rhbz-988516-DOCX-import-fix-context-stack-when-impor.patch b/0002-rhbz-988516-DOCX-import-fix-context-stack-when-impor.patch new file mode 100644 index 0000000..0a18e41 --- /dev/null +++ b/0002-rhbz-988516-DOCX-import-fix-context-stack-when-impor.patch @@ -0,0 +1,321 @@ +From 9a156365277c93bd66c2ef21c42bfa377eaf314b Mon Sep 17 00:00:00 2001 +From: Michael Stahl +Date: Wed, 5 Mar 2014 23:29:06 +0100 +Subject: [PATCH 2/2] rhbz#988516: DOCX import: fix context stack when + importing header/footer + +When a header/footer substream is parsed, a ParagraphGroup is started, +but not ended; so the properties of the last paragraph in the +header/footer are applied to a paragraph in the body. + +The obvious fix to add a call to endParagraphGroup() at the end of w:p +element breaks table cells. So add a call to endParagraphGroup() at +the end of the "hdr"/"ftr" element. + +(The problem in the bugdoc became much more visible with commit +ca555c596043c88894b964ac5e21f5a7271d5f3b, but was there before) + +Change-Id: Ib054f1882793049b39424c1076ba5d4b319cd027 +(cherry picked from commit 2b78f2cd7b9e4bab0f3b3b9119238f36a1bbc7b2) +Reviewed-on: https://gerrit.libreoffice.org/8477 +Reviewed-by: Miklos Vajna +Tested-by: Miklos Vajna +--- + sw/qa/extras/ooxmlimport/data/rhbz988516.docx | Bin 0 -> 15513 bytes + sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 12 ++++++++++++ + writerfilter/source/ooxml/model.xml | 4 +++- + 3 files changed, 15 insertions(+), 1 deletion(-) + create mode 100644 sw/qa/extras/ooxmlimport/data/rhbz988516.docx + +diff --git a/sw/qa/extras/ooxmlimport/data/rhbz988516.docx b/sw/qa/extras/ooxmlimport/data/rhbz988516.docx +new file mode 100644 +index 0000000000000000000000000000000000000000..38e2dcff324036a333060f10475fa60a6c872074 +GIT binary patch +literal 15513 +zcmeIZ1$SIYvMnrTW@ZM9EwU|UX0(`@S+bZ}vMgq1W@ct)wwM`Tx!=rmx2M1N{eXMV +zT2<@RI=SOSMnz=q%!rhg00lz>f&hX70sumx(rk6EoSBKe<#Um<{0_y|%4kxX9_wfXujK8kJWVvdvB{x3GzZLG1hUI}KSuFvEYfmD15B^ryX9v*4v0NJXQt4AO1_Crkg-5yR&;3pQO3{HeoF>t67MP~!HhlFvT7 +zm4^b}zU7rrlnWcTG$_gVGumLs2H%(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9G;;gJyj=s;XfhF|(l6Ak5T^7Y>6XFDs`6I_S~uPvc=ljb0k@DM60<^U +ze?uo27iIIEBRmCDuVgPL09_#UbtccMyB@ijp6V4LLmw|8#p$Umsp9Z1!23!Ui~Qy4 +zI4gWzR5wCE9@v$7Vh~inC65n~67m=)chV7H*mpIFV)(W`6bcp$_WbIc# +z&F=qoF<=mSKnVWx`NdzO-(RnPIL#<4@pl1#KOps2@FswD{pGmS@4&yG8u=>_44~`( +z>kP^7l727w|5H{BAc6N^2LOJD|6bPoC;S9(hTsqQUy7W6NB>@+`X^ckkR1F2{g-mp +z-_gHUIR1(L3aASC1O0owA8>H|bs +JJIAkI{|EA+bCm!9 + +literal 0 +HcmV?d00001 + +diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +index dca64b7..4c8a790 100644 +--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx ++++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +@@ -189,6 +189,18 @@ DECLARE_OOXMLIMPORT_TEST(testN757890, "n757890.docx") + CPPUNIT_ASSERT_EQUAL(text::HoriOrientation::CENTER, nValue); + } + ++DECLARE_OOXMLIMPORT_TEST(testRhbz988516, "rhbz988516.docx") ++{ ++ // The problem was that the list properties of the footer leaked into body ++ CPPUNIT_ASSERT_EQUAL(OUString(), ++ getProperty(getParagraph(1), "NumberingStyleName")); ++ CPPUNIT_ASSERT_EQUAL(OUString("Enclosure 3"), getParagraph(2)->getString()); ++ CPPUNIT_ASSERT_EQUAL(OUString(), ++ getProperty(getParagraph(2), "NumberingStyleName")); ++ CPPUNIT_ASSERT_EQUAL(OUString(), ++ getProperty(getParagraph(3), "NumberingStyleName")); ++} ++ + DECLARE_OOXMLIMPORT_TEST(testFdo49940, "fdo49940.docx") + { + uno::Reference xTextDocument(mxComponent, uno::UNO_QUERY); +diff --git a/writerfilter/source/ooxml/model.xml b/writerfilter/source/ooxml/model.xml +index a049fde..6018582 100644 +--- a/writerfilter/source/ooxml/model.xml ++++ b/writerfilter/source/ooxml/model.xml +@@ -22557,7 +22557,9 @@ + + + +- ++ ++ ++ + + + +-- +1.8.3.1 + diff --git a/libreoffice.spec b/libreoffice.spec index 9386c9b..af85ce2 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -43,7 +43,7 @@ Summary: Free Software Productivity Suite Name: libreoffice Epoch: 1 Version: %{libo_version}.1 -Release: 5%{?libo_prerelease}%{?dist} +Release: 6%{?libo_prerelease}%{?dist} License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0 Group: Applications/Productivity URL: http://www.libreoffice.org/default/ @@ -285,6 +285,10 @@ Patch22: 0001-KDE-don-t-throw-on-TemplatePathVariable.patch Patch23: 0001-Resolves-rhbz-1007697-Update-on-a-Window-triggering-.patch Patch24: 0001-Wizards-should-look-for-templates-in-Template_intern.patch Patch25: 0001-actively-search-for-wizards-dir-in-all-internal-temp.patch +Patch26: 0002-rhbz-988516-DOCX-import-fix-context-stack-when-impor.patch +Patch27: 0001-fdo-74787-rhbz-1072553-Fix-deselection-problems-of-t.patch +Patch28: 0001-rhbz-1072607-hopefully-fix-crash-in-SvxRuler-MouseMo.patch +Patch29: 0001-rhbz-1043551-sw-avoid-division-by-0-in-Text-Grid-pai.patch %define instdir %{_libdir} %define baseinstdir %{instdir}/libreoffice @@ -2179,6 +2183,12 @@ update-desktop-database %{_datadir}/applications &> /dev/null || : %endif %changelog +* Tue Mar 04 2014 Caolán McNamara - 1:4.2.2.1-6-UNBUILT +- Resolves: rhbz#988516: DOCX import: fix context stack when importing header +- Resolves: rhbz#1072553: Fix deselection problems of template view +- Resolves: rhbz#1072607: fix crash in SvxRuler::MouseMove() +- Resolves: rhbz#1043551: sw: avoid division-by-0 in Text Grid painting code + * Tue Mar 04 2014 Caolán McNamara - 1:4.2.2.1-5 - Related: rhbz#1065807 wizards should find the right wizards subdir of Template_internal, who knew this stuff was so fragile