[Libreoffice-commits] online.git: kit/KitHelper.hpp

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Sat Jun 27 22:37:43 UTC 2020


 kit/KitHelper.hpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ab1fc4c7b3d7a27abe1909e54f51de0e998b4dad
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Wed Jun 24 21:25:12 2020 +0200
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Sun Jun 28 00:37:24 2020 +0200

    Also send parthash info when using draw (in case of PDF)
    
    Parts hashes were only sent for impress but we also need it for
    draw (PDF) so that the annostions/comments start to work.
    
    Change-Id: I8668c67cd9ae6ab0b5a3bda3eb5f784499a41927
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97332
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/kit/KitHelper.hpp b/kit/KitHelper.hpp
index 2c8db05ba..07b33750b 100644
--- a/kit/KitHelper.hpp
+++ b/kit/KitHelper.hpp
@@ -61,7 +61,7 @@ namespace LOKitHelper
             << " height=" << height
             << " viewid=" << loKitDocument->pClass->getView(loKitDocument);
 
-        if (type == LOK_DOCTYPE_SPREADSHEET || type == LOK_DOCTYPE_PRESENTATION)
+        if (type == LOK_DOCTYPE_SPREADSHEET || type == LOK_DOCTYPE_PRESENTATION || type == LOK_DOCTYPE_DRAWING)
         {
             std::ostringstream hposs;
             std::ostringstream sposs;
@@ -108,7 +108,7 @@ namespace LOKitHelper
                 std::free(ptrValue);
             }
 
-            if (type == LOK_DOCTYPE_PRESENTATION)
+            if (type == LOK_DOCTYPE_PRESENTATION || type == LOK_DOCTYPE_DRAWING)
             {
                 for (int i = 0; i < parts; ++i)
                 {


More information about the Libreoffice-commits mailing list