sc/source/ui/view/drawview.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit be12f228ff0cdf34f5821829047ef898e9feabfa
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Tue Jun 17 17:29:23 2025 +0200
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Thu Jul 17 11:14:51 2025 +0200

    Related: tdf#166633 - sc fix wrong context menu for textboxes
    
    Remove unnecessary statement from else if.
    
    Change-Id: I91f2417404ecce1eefd056806fa1cc78a9267517
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186625
    Tested-by: Jenkins
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>
    (cherry picked from commit cf339d5f79551dec606e4872d2bb0307be382080)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186637
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    (cherry picked from commit 71dfc16dae3232024242e7d3c009a34a51f411a6)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187984
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index ca5821970f04..bccf4f952f5c 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -427,7 +427,7 @@ void ScDrawView::MarkListHasChanged()
             if (!pViewSh->IsDrawTextShell()) // when creating a text object 
@#70206#
                 pViewSh->SetDrawShell(true);
         }
-        else if (nSdrObjKind != SdrObjKind::Text && 
!pViewSh->IsDrawTextShell())
+        else if (!pViewSh->IsDrawTextShell())
         {
             // tdf#166481: we only need to switch to draw shell if we have not
             // already created a text shell for text edit mode

Reply via email to