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

Stephan Bergmann sbergman at redhat.com
Mon Jan 5 02:21:27 PST 2015


 cui/source/options/optopencl.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit c02033a4b5f314228a761184a92294a6402508b4
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jan 5 11:20:53 2015 +0100

    -Werror,-Warray-bounds
    
    Change-Id: If1c3bfdf6bf256da69b0837070955fabbe773c9d

diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index 5fe100e..63475ea 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -93,11 +93,11 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
     rWiBar.InsertItem( 5, mpDrvVersion->GetText(), 0, nHBits );
 
     long aTabs[] = {5, 0, 0, 0, 0, 0};
-    aTabs[2] = rBlBar.GetTextWidth(rBlBar.GetItemText(1)) + 12;
-    aTabs[3] = rBlBar.GetTextWidth(rBlBar.GetItemText(2)) + aTabs[2] + 12;
-    aTabs[4] = rBlBar.GetTextWidth(rBlBar.GetItemText(3)) + aTabs[3] + 12;
-    aTabs[5] = rBlBar.GetTextWidth(rBlBar.GetItemText(4)) + aTabs[4] + 12;
-    aTabs[6] = rBlBar.GetTextWidth(rBlBar.GetItemText(5)) + aTabs[5] + 12;
+    aTabs[1] = rBlBar.GetTextWidth(rBlBar.GetItemText(1)) + 12;
+    aTabs[2] = rBlBar.GetTextWidth(rBlBar.GetItemText(2)) + aTabs[1] + 12;
+    aTabs[3] = rBlBar.GetTextWidth(rBlBar.GetItemText(3)) + aTabs[2] + 12;
+    aTabs[4] = rBlBar.GetTextWidth(rBlBar.GetItemText(4)) + aTabs[3] + 12;
+    aTabs[5] = rBlBar.GetTextWidth(rBlBar.GetItemText(5)) + aTabs[4] + 12;
     mpBlackList->SetTabs(aTabs, MAP_PIXEL);
     mpWhiteList->SetTabs(aTabs, MAP_PIXEL);
 


More information about the Libreoffice-commits mailing list