wsd/Storage.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit dc57cf8d3c7b0e97175c31411f4564b6b5f05e1a Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits