loolwsd: Calc: core and client could be on 2 different tabs

The check for the current part was done before set view on core to the
one of the sender message

Change-Id: If4b9264c981ecc4e858d23366045e42be603c7c4
This commit is contained in:
Marco Cecchetti 2016-10-01 20:07:39 +02:00
parent 97fa8e45f9
commit 5edb4cb8c4

View file

@ -895,10 +895,10 @@ bool ChildSession::setClientPart(const char* /*buffer*/, int /*length*/, StringT
auto lock(_loKitDocument->getLock());
_loKitDocument->setView(_viewId);
if (part != _loKitDocument->getPart())
{
_loKitDocument->setView(_viewId);
_loKitDocument->setPart(part);
}