sc/source/ui/view/drawview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 989ccfdabf8fa2f9b67a07270bfbf8f4e40d9955 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: Thu Jun 19 11:28:33 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/+/186703 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Gökay ŞATIR <gokaysa...@collabora.com> diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx index 7626ee950c2b..f63864191277 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