diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-09-21 15:49:30 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-09-21 16:01:44 +0200 |
commit | 4b13430f6d63d950c07cb9ceda4e1bca7bec6422 (patch) | |
tree | ef6447885f15b5cdca7aed690f6ae4dd35981935 /wsd/ClientSession.hpp | |
parent | Revert "loleaflet: mobile: disable scroll bars" (diff) | |
download | online-4b13430f6d63d950c07cb9ceda4e1bca7bec6422.tar.gz online-4b13430f6d63d950c07cb9ceda4e1bca7bec6422.zip |
Fix warning: in case of a text document part number has no meaning
In this case the part number is undefined, somewhere it is set to 0 or 1,
but has no meaning at all. Just avoid using it with text ducments.
Change-Id: Ic98217bf3ea6c86d37c34e42302bf456f7274975
Diffstat (limited to 'wsd/ClientSession.hpp')
-rw-r--r-- | wsd/ClientSession.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsd/ClientSession.hpp b/wsd/ClientSession.hpp index 2efd266245..326ff50c0b 100644 --- a/wsd/ClientSession.hpp +++ b/wsd/ClientSession.hpp @@ -150,6 +150,8 @@ public: /// Clear wireId map anytime when client visible area changes (visible area, zoom, part number) void resetWireIdMap(); + + bool isTextDocument() const { return _isTextDocument; } private: /// SocketHandler: disconnection event. |