[Libreoffice-commits] online.git: wsd/Storage.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Jan 16 06:26:40 UTC 2017


 wsd/Storage.hpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit dc57cf8d3c7b0e97175c31411f4564b6b5f05e1a
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sun Jan 15 23:06:27 2017 -0500

    wsd: 0-byte files are valid and LO loads them as new docs
    
    Change-Id: Icf0cdd05ca7397f29bf66139d4ef15ef86ec05fd
    Reviewed-on: https://gerrit.libreoffice.org/33141
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/wsd/Storage.hpp b/wsd/Storage.hpp
index 4aada27..69b1ea9 100644
--- a/wsd/Storage.hpp
+++ b/wsd/Storage.hpp
@@ -43,7 +43,8 @@ public:
 
         bool isValid() const
         {
-            return !_filename.empty() && _size > 0;
+            // 0-byte files are valid; LO will open them as new docs.
+            return !_filename.empty();
         }
 
         std::string _filename;


More information about the Libreoffice-commits mailing list