diff --git a/0001-avoid-loss-of-text-in-edited-placeholder.patch b/0001-avoid-loss-of-text-in-edited-placeholder.patch new file mode 100644 index 0000000..ab46a44 --- /dev/null +++ b/0001-avoid-loss-of-text-in-edited-placeholder.patch @@ -0,0 +1,35 @@ +From 100b3b7972c2a0cf341aa97971f5d7c9d1a0b68b Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Tue, 22 Nov 2016 09:07:54 +0100 +Subject: [PATCH] avoid loss of text in edited placeholder + +How to reproduce: +1. Create an empty presentation. +2. Save it. +3. Click at one of the text placeholders and write something. +4. Save again. +5. Reload. The placeholder is missing. (Actually, it's still there, but + empty and 0-size.) + +This only happens if a11y is enabled. + +Change-Id: I7ae3d3c6ab0ce91aef01c0e9d62f7963dce965fc +--- + svx/source/unodraw/unoshtxt.cxx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx +index cda12f7..3a5705f 100644 +--- a/svx/source/unodraw/unoshtxt.cxx ++++ b/svx/source/unodraw/unoshtxt.cxx +@@ -589,6 +589,7 @@ SvxTextForwarder* SvxTextEditSourceImpl::GetBackgroundTextForwarder() + bCreated = true; + + mbForwarderIsEditMode = false; ++ mbDataValid = false; + } + + if( mpObject && mpText && !mbDataValid && mpObject->IsInserted() && mpObject->GetPage() ) +-- +2.9.3 + diff --git a/libreoffice.spec b/libreoffice.spec index 78ed026..530c00d 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -58,7 +58,7 @@ Summary: Free Software Productivity Suite Name: libreoffice Epoch: 1 Version: %{libo_version}.2 -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 and CC0 URL: http://www.libreoffice.org/ @@ -303,6 +303,7 @@ Patch65: 0001-Resolves-tdf-104096-reset-also-rRawRes-if-trailing-c.patch Patch66: 0001-ODF-do-not-write-an-empty-style-text-position-attrib.patch Patch67: 0001-Resolves-tdf-103994-AdjustReferenceOnMove-handle-ext.patch Patch68: 0001-Resolves-tdf-102999-get_selected_printer-is-transfer.patch +Patch69: 0001-avoid-loss-of-text-in-edited-placeholder.patch %if ! 0%{?rhel} Patch400: 0001-Update-liborcus-to-0.11.0.patch @@ -2373,6 +2374,9 @@ done %endif %changelog +* Tue Nov 22 2016 David Tardon - 1:5.1.6.2-6-UNBUILT +- avoid loss of text in edited placeholder on save + * Tue Nov 22 2016 Eike Rathke - 1:5.1.6.2-5 - Resolves: tdf#104096 reset also rRawRes if trailing characters are present - ODF: do not write an empty style:text-position="" attribute for CharEscapement