[Libreoffice-commits] online.git: loolwsd/LOOLSession.cpp

Jan Holesovsky kendy at collabora.com
Thu Jun 25 08:04:26 PDT 2015


 loolwsd/LOOLSession.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 40710223051dc0cf0de77d8343757d45a8ea1132
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Jun 25 17:03:18 2015 +0200

    The payload format has changed, swap the parameters accondingly.

diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp
index 2c52b44..a568569 100644
--- a/loolwsd/LOOLSession.cpp
+++ b/loolwsd/LOOLSession.cpp
@@ -771,10 +771,10 @@ extern "C"
                 StringTokenizer tokens(std::string(pPayload), " ", StringTokenizer::TOK_IGNORE_EMPTY | StringTokenizer::TOK_TRIM);
                 if (tokens.count() == 4)
                 {
-                    int width(std::stoi(tokens[0]));
-                    int height(std::stoi(tokens[1]));
-                    int x(std::stoi(tokens[2]));
-                    int y(std::stoi(tokens[3]));
+                    int x(std::stoi(tokens[0]));
+                    int y(std::stoi(tokens[1]));
+                    int width(std::stoi(tokens[2]));
+                    int height(std::stoi(tokens[3]));
                     srv->sendTextFrame("invalidate:"
                                        " part=" + std::to_string(curPart) +
                                        " x=" + std::to_string(x) +


More information about the Libreoffice-commits mailing list