wsd: don't warn incorrectly when selecting current part

Change-Id: I3c872469911b1f232e40cc110859402fc0814f3a
Reviewed-on: https://gerrit.libreoffice.org/69640
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/71104
This commit is contained in:
Ashod Nakashian 2019-01-20 16:44:28 -05:00 committed by Ashod Nakashian
parent 22d03720a2
commit 64c5ec5bbc

View file

@ -1956,7 +1956,9 @@ bool ChildSession::selectClientPart(const char* /*buffer*/, int /*length*/, cons
getLOKitDocument()->setView(_viewId);
if (getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_TEXT && nPart != getLOKitDocument()->getPart())
if (getLOKitDocument()->getDocumentType() != LOK_DOCTYPE_TEXT)
{
if (nPart != getLOKitDocument()->getPart())
{
getLOKitDocument()->selectPart(nPart, nSelect);
@ -1965,6 +1967,7 @@ bool ChildSession::selectClientPart(const char* /*buffer*/, int /*length*/, cons
if (!status.empty())
return sendTextFrame("statusupdate: " + status);
}
}
else
{
LOG_WRN("ChildSession::selectClientPart[" << getName() << "]: error selecting part on text documents.");