[Libreoffice-commits] online.git: loolwsd/TileDesc.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Tue Sep 20 03:34:00 UTC 2016


 loolwsd/TileDesc.hpp |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 454b2b71c18ace94f16dcf1f203c4d20cf9f1dce
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Mon Sep 19 20:30:35 2016 -0400

    loolwsd: don't generate imgsize in tile when 0
    
    Change-Id: I469bdbfbb5efd8230808e6c68f58f505acef3993
    Reviewed-on: https://gerrit.libreoffice.org/29069
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/TileDesc.hpp b/loolwsd/TileDesc.hpp
index e4d2c36..0258645 100644
--- a/loolwsd/TileDesc.hpp
+++ b/loolwsd/TileDesc.hpp
@@ -81,8 +81,13 @@ public:
             << " tileposy=" << _tilePosY
             << " tilewidth=" << _tileWidth
             << " tileheight=" << _tileHeight
-            << " ver=" << _ver
-            << " imgsize=" << _imgSize;
+            << " ver=" << _ver;
+
+        if (_imgSize > 0)
+        {
+            oss << " imgsize=" << _imgSize;
+        }
+
         if (_id >= 0)
         {
             oss << " id=" << _id;


More information about the Libreoffice-commits mailing list