summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-01-22 11:39:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-01-22 12:31:20 +0100
commit0ad94d52c022a0acb20be21b5a1dfcf445e12f0c (patch)
tree36725076b0dbbbe1b8f0637ee5f42a6c00b66b31
parentb9368eab798a766b5a24658c783a6ee73dbf2caa (diff)
fix bug in renaming chart objects
introduced by commit c5bb73cae7c172ad0f02f8c67dd57b53337f1d78 Author: Kohei Yoshida <kohei.yoshida@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.grandin@collabora.co.uk>
-rw-r--r--chart2/source/controller/main/ShapeController.cxx2
1 files changed, 1 insertions, 1 deletions
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 );
}