[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - sd/source

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Sat Apr 10 06:49:35 UTC 2021


 sd/source/ui/view/drviews1.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit c7846ae55d67307c1f0968ec362bc6256274caf3
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Tue Jan 26 11:17:40 2021 +0100
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sat Apr 10 08:48:40 2021 +0200

    Revert "LOK: allow slide switching in mobile even if it is same slide"
    
    This reverts commit 6693717155cc3f4ab998c5b77b839bb72cbc7236.
    
    The reverted commit lead to shape deselection by view switch.
    
    Change-Id: I51867e60f0e9e495e2ccf54016d181f4049ad520
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109936
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 18b6ba8a89c9..b1105e38872f 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -30,7 +30,6 @@
 #include <svx/svdpagv.hxx>
 #include <sfx2/viewfrm.hxx>
 #include <sfx2/bindings.hxx>
-#include <sfx2/lokhelper.hxx>
 #include <svx/svdoole2.hxx>
 #include <sfx2/dispatch.hxx>
 #include <sfx2/module.hxx>
@@ -915,8 +914,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
                     SdPage* pCurrentPage = pPV ? dynamic_cast<SdPage*>(pPV->GetPage()) : nullptr;
                     if (pCurrentPage
                         && pNewPage == pCurrentPage
-                        && maTabControl->GetPageText(maTabControl->GetPageId(nSelectedPage)) == pNewPage->GetName()
-                        && SfxLokHelper::getDeviceFormFactor() != LOKDeviceFormFactor::MOBILE)
+                        && maTabControl->GetPageText(maTabControl->GetPageId(nSelectedPage)) == pNewPage->GetName())
                     {
                         // this slide is already visible
                         return true;


More information about the Libreoffice-commits mailing list