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

New commits:
commit cf339d5f79551dec606e4872d2bb0307be382080
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Tue Jun 17 17:29:23 2025 +0200
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Wed Jun 18 00:17:35 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>

diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index edab516f7f41..0221a047cd26 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -407,7 +407,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