From a82cdccb0c276ec10c35beec46fa7fa25fc95cd5 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Thu, 22 Mar 2018 17:36:51 +0100 Subject: Typo: GetSelectItemId -> GetSelectedItemId Change-Id: Ieebb50b73f1f341c924693f3966f8cd2b09a136b Reviewed-on: https://gerrit.libreoffice.org/51750 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- svx/source/sidebar/line/LineWidthPopup.cxx | 2 +- svx/source/sidebar/shapes/DefaultShapesPanel.cxx | 2 +- svx/source/sidebar/tools/ValueSetWithTextControl.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svx/source/sidebar') diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx index 72516cdc59d7..b3f4e3cbdb2e 100644 --- a/svx/source/sidebar/line/LineWidthPopup.cxx +++ b/svx/source/sidebar/line/LineWidthPopup.cxx @@ -112,7 +112,7 @@ LineWidthPopup::~LineWidthPopup() IMPL_LINK(LineWidthPopup, VSSelectHdl, ValueSet*, /*pControl*/, void) { - sal_uInt16 iPos = m_xVSWidth->GetSelectItemId(); + sal_uInt16 iPos = m_xVSWidth->GetSelectedItemId(); if (iPos >= 1 && iPos <= 8) { sal_IntPtr nVal = LogicToLogic(reinterpret_cast(m_xVSWidth->GetItemData( iPos )), MapUnit::MapPoint, m_eMapUnit); diff --git a/svx/source/sidebar/shapes/DefaultShapesPanel.cxx b/svx/source/sidebar/shapes/DefaultShapesPanel.cxx index dc074df94e6c..671eeeba55b4 100644 --- a/svx/source/sidebar/shapes/DefaultShapesPanel.cxx +++ b/svx/source/sidebar/shapes/DefaultShapesPanel.cxx @@ -112,7 +112,7 @@ IMPL_LINK(DefaultShapesPanel, ShapeSelectHdl, ValueSet*, rValueSet, void) { if(rValueSet == aSetMap.first) { - int aSelection = aSetMap.first->GetSelectItemId(); + int aSelection = aSetMap.first->GetSelectedItemId(); comphelper::dispatchCommand(aSetMap.second[aSelection], {}); } else diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index 64bf618597a4..1f71d291fe23 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -69,7 +69,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) { //draw background - if ( GetSelectItemId() == nItemId ) + if ( GetSelectedItemId() == nItemId ) { tools::Rectangle aBackRect = aRect; aBackRect.AdjustTop(3 ); @@ -83,7 +83,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) pDev->DrawRect(aRect); } - if ( GetSelectItemId() == nItemId ) + if ( GetSelectedItemId() == nItemId ) { aFont.SetColor( sfx2::sidebar::Theme::GetColor( sfx2::sidebar::Theme::Color_HighlightText ) ); } -- cgit