diff options
Diffstat (limited to 'sfx2/source/control/thumbnailviewitem.cxx')
-rw-r--r-- | sfx2/source/control/thumbnailviewitem.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx index c228babd21c5..2a83bc175774 100644 --- a/sfx2/source/control/thumbnailviewitem.cxx +++ b/sfx2/source/control/thumbnailviewitem.cxx @@ -187,8 +187,8 @@ void ThumbnailViewItem::updateTitleEditSize() void ThumbnailViewItem::setTitle (const rtl::OUString& rTitle) { - mrParent.renameItem(this, rTitle); - maTitle = rTitle; + if (mrParent.renameItem(this, rTitle)) + maTitle = rTitle; } uno::Reference< accessibility::XAccessible > ThumbnailViewItem::GetAccessible( bool bIsTransientChildrenDisabled ) |