From 97ed6eda9a0a9884ad49719116b38a1fdf472b43 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 22 Nov 2016 10:49:24 +0100 Subject: [PATCH] avoid loss of text in edited placeholder on save --- ...d-loss-of-text-in-edited-placeholder.patch | 35 +++++++++++++++++++ libreoffice.spec | 1 + 2 files changed, 36 insertions(+) create mode 100644 0001-avoid-loss-of-text-in-edited-placeholder.patch 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 b576b6b..4d3f633 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -237,6 +237,7 @@ Patch7: 0001-remove-OpenGL-transitions-config.-file-from-scheme.patch # want a nice abrt report Patch8: 0001-don-t-suppress-crashes.patch Patch9: 0001-catch-and-rethrow-later-uno-exceptions-within-glib-s.patch +Patch10: 0001-avoid-loss-of-text-in-edited-placeholder.patch %if 0%{?rhel} # not upstreamed