chart2/source/controller/main/ShapeController.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0ad94d52c022a0acb20be21b5a1dfcf445e12f0c
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Jan 22 11:39:42 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Jan 22 12:31:20 2024 +0100

    fix bug in renaming chart objects
    
    introduced by
        commit c5bb73cae7c172ad0f02f8c67dd57b53337f1d78
        Author: Kohei Yoshida <kohei.yosh...@suse.com>
        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 <noel.gran...@collabora.co.uk>

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 );
         }

Reply via email to