chart2/source/controller/main/ShapeController.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 49bb4229ded946a411f2d6677da7f9f4155af941 Author: Noel Grandin <[email protected]> AuthorDate: Mon Jan 22 11:39:42 2024 +0200 Commit: Michael Stahl <[email protected]> CommitDate: Tue Jan 23 10:43:43 2024 +0100 fix bug in renaming chart objects introduced by commit c5bb73cae7c172ad0f02f8c67dd57b53337f1d78 Author: Kohei Yoshida <[email protected]> Date: Tue Jan 31 16:03:46 2012 -0500 Get the whole thing to build after the method sig change in SdrObject. Change-Id: I1ca887d09857f6476980381853a9ae4946fd03e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162364 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> (cherry picked from commit 0ad94d52c022a0acb20be21b5a1dfcf445e12f0c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162377 Reviewed-by: Michael Stahl <[email protected]> diff --git a/chart2/source/controller/main/ShapeController.cxx b/chart2/source/controller/main/ShapeController.cxx index 97715b07c295..115229de0e57 100644 --- a/chart2/source/controller/main/ShapeController.cxx +++ b/chart2/source/controller/main/ShapeController.cxx @@ -440,7 +440,7 @@ void ShapeController::executeDispatch_RenameObject() if ( pDlg->Execute() == RET_OK ) { pDlg->GetName(aName); - if (pSelectedObj->GetName() == aName) + if (pSelectedObj->GetName() != aName) { pSelectedObj->SetName( aName ); }
