[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - cui/source

Caolán McNamara caolanm at redhat.com
Wed Oct 25 23:08:19 UTC 2017


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

New commits:
commit 662d3d1404708245a17d3e94e99ebeb8cb068e50
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/43821
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Tested-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 606e66309205..1e5c5937d326 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -1013,7 +1013,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