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:
parent
22d03720a2
commit
64c5ec5bbc
1 changed files with 9 additions and 6 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue