summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-10-16 12:26:51 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-10-31 12:03:28 +0100
commitc88c9b4ff2c408c0a383d5c7c658210b96e1430a (patch)
treeb86970ce71bb01fedc6e9f530c89c0f6c3971a8b /cui
parent2cc05f7b85a37be41614793ffd56755c39eb96de (diff)
Fixed position of extension colors in Appearance options page
Change-Id: I026e26fda195ddf4b14e250040358ddf31fda21f
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optcolor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index b6e834fa4392..cc217e40b0d1 100644
--- a/cui/source/options/optcolor.cxx
+++ b/cui/source/options/optcolor.cxx
@@ -706,8 +706,8 @@ void ColorConfigWindow_Impl::CreateEntries (ResMgr& rResMgr)
ExtendedColorConfig aExtConfig;
if (unsigned const nExtGroupCount = aExtConfig.GetComponentCount())
{
- unsigned nLineNum = GetPosBehindLastChapter() /
- LogicToPixel(Size(0, LINE_HEIGHT), MAP_APPFONT).Height();
+ unsigned nLineNum = ( GetPosBehindLastChapter() /
+ LogicToPixel(Size(0, LINE_HEIGHT), MAP_APPFONT).Height() ) + 1;
for (unsigned j = 0; j != nExtGroupCount; ++j)
{
rtl::OUString const sComponentName = aExtConfig.GetComponentName(j);