[Libreoffice-commits] core.git: cui/source

Caolán McNamara caolanm at redhat.com
Wed Oct 25 15:30:33 UTC 2017


 cui/source/tabpages/border.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ece7f54a6ddcb635822ca51b7558561d69af7934
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Oct 25 11:11:34 2017 +0100

    Resolves: tdf#113378 wrong table border preset icons
    
    Change-Id: Ibb9d0bcab6720fd85d5d3e2ae82821ff1c003c5b
    Reviewed-on: https://gerrit.libreoffice.org/43820
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 5045f838a9ee..79416476b750 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -1014,7 +1014,7 @@ void SvxBorderTabPage::FillPresetVS()
     for( sal_uInt16 nVSIdx = 1; nVSIdx <= SVX_BORDER_PRESET_COUNT; ++nVSIdx )
     {
         m_pWndPresets->InsertItem( nVSIdx );
-        m_pWndPresets->SetItemImage(nVSIdx, Image(m_aBorderImgVec[nVSIdx-1]));
+        m_pWndPresets->SetItemImage(nVSIdx, Image(m_aBorderImgVec[GetPresetImageId(nVSIdx) - 1]));
         m_pWndPresets->SetItemText( nVSIdx, CuiResId( GetPresetStringId( nVSIdx ) ) );
     }
 


More information about the Libreoffice-commits mailing list