sd/source/ui/tools/SlideshowLayerRenderer.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 13df4f19a8bb849417fefeb883c90be32613e5b9
Author:     Marco Cecchetti <marco.cecche...@collabora.com>
AuthorDate: Tue Nov 5 21:13:44 2024 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Mar 19 13:01:05 2025 +0100

    slideshow: render text shape with all paragraphs animated properly
    
    When all paragraphs of a text shape are animated, the render pass related 
to the
    non animated part of the text shape was rendering all the paragraphs 
instead of
    the text shape background only.
    
    Change-Id: I1b4d9e301efe569b2b26bec19f569ff54ef61182
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183114
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sd/source/ui/tools/SlideshowLayerRenderer.cxx 
b/sd/source/ui/tools/SlideshowLayerRenderer.cxx
index b8841b3923d0..08cdb1631e6c 100644
--- a/sd/source/ui/tools/SlideshowLayerRenderer.cxx
+++ b/sd/source/ui/tools/SlideshowLayerRenderer.cxx
@@ -457,7 +457,10 @@ public:
 
         auto const& rParagraphs = aIterator->second;
 
-        if (!rParagraphs.empty())
+        // A render pass for the non-animated part of a text shapes whose 
paragraphs are all animated
+        // has no paragraphs (rParagraphs.empty()) anyway it still needs to be 
modified in order to
+        // render the text shape background only; on the contrary it will 
render all paragraphs.
+        if (!rParagraphs.empty() || mrRenderPass.mbRenderObjectBackground)
         {
             auto const& rViewInformation2D = 
rOriginal.GetObjectContact().getViewInformation2D();
             auto rContainer

Reply via email to