diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-05 11:20:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-05 11:20:53 +0100 |
commit | c02033a4b5f314228a761184a92294a6402508b4 (patch) | |
tree | 958ac82f1a6fe1d1c586a71ac8998bb5b5f3bb78 /cui | |
parent | f53e79acd0d42f5c41e1104056af9cf23e9e2e2a (diff) |
-Werror,-Warray-bounds
Change-Id: If1c3bfdf6bf256da69b0837070955fabbe773c9d
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optopencl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx index 5fe100e5a41a..63475ea2a7f1 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); |