loolwsd: Don't cache empty partpagerectangles.

This is implemented only for Writer, so they are empty for Calc and Impress;
and yet they can confuse loleaflet terribly...
This commit is contained in:
Jan Holesovsky 2016-01-12 14:51:32 +01:00
parent ed7585e4ff
commit d51972c28d

View file

@ -177,7 +177,8 @@ bool MasterProcessSession::_handleInput(const char *buffer, int length)
}
else if (tokens[0] == "partpagerectangles:")
{
peer->_tileCache->saveTextFile(std::string(buffer, length), "partpagerectangles.txt");
if (tokens.count() > 1 && !tokens[1].empty())
peer->_tileCache->saveTextFile(std::string(buffer, length), "partpagerectangles.txt");
}
else if (tokens[0] == "invalidatecursor:")
{