diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 41709da40644..9d4272745ed9 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -278,9 +278,9 @@ public: /// Insert @rImage item. void InsertItem(sal_uInt16 nItemId, const Image& rImage); - /// Insert @rImage item with @rStr as either a legend or tooltip depending on @bShowLegend. + /// Insert @rImage item with @rStr as tooltip. void InsertItem(sal_uInt16 nItemId, const Image& rImage, - const OUString& rStr, size_t nPos = VALUESET_APPEND, bool bShowLegend = false); + const OUString& rStr, size_t nPos = VALUESET_APPEND); /// Insert an @rColor item with @rStr tooltip. void InsertItem(sal_uInt16 nItemId, const Color& rColor, const OUString& rStr); diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 1fa3899e9134..0ce64a382b3e 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1455,12 +1455,11 @@ void ValueSet::InsertItem( sal_uInt16 nItemId, const Image& rImage ) } void ValueSet::InsertItem( sal_uInt16 nItemId, const Image& rImage, - const OUString& rText, size_t nPos, - bool bShowLegend ) + const OUString& rText, size_t nPos) { std::unique_ptr pItem(new ValueSetItem( *this )); pItem->mnId = nItemId; - pItem->meType = bShowLegend ? ValueSetItemType::ImageAndText : ValueSetItemType::Image; + pItem->meType = ValueSetItemType::Image; pItem->maImage = rImage; pItem->maText = rText; ImplInsertItem( std::move(pItem), nPos );