diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-02 17:14:03 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-02 17:38:55 +0100 |
commit | 6e3fbd15986804fa86a3c3a6ff49047da9c5d7f6 (patch) | |
tree | a2d7b9e5d3854a16362ca801a923d0a472b06541 /sc/source/ui/condformat | |
parent | cee68472a07069776093987d579fa1ac2cc2fd8a (diff) |
we don't need the last entry for icon sets
Change-Id: If76187689bc63199dc0249626ed4ab4c904ecf18
Diffstat (limited to 'sc/source/ui/condformat')
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index 66079e10c1dd..f648beaf9cba 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -1297,6 +1297,13 @@ ScColorScaleEntry* ScIconSetFrmtEntry::ScIconSetFrmtDataEntry::CreateEntry(ScDoc return pEntry; } +void ScIconSetFrmtEntry::ScIconSetFrmtDataEntry::SetLastEntry() +{ + maEdEntry.Hide(); + maLbEntryType.Hide(); + maFtEntry.Hide(); +} + ScIconSetFrmtEntry::ScIconSetFrmtEntry( Window* pParent, ScDocument* pDoc, const ScAddress& rPos, const ScIconSetFormat* pFormat ): ScCondFrmtEntry( pParent, pDoc, rPos ), maLbColorFormat( this, ScResId( LB_COLOR_FORMAT ) ), @@ -1321,6 +1328,7 @@ ScIconSetFrmtEntry::ScIconSetFrmtEntry( Window* pParent, ScDocument* pDoc, const aPos.Y() += maEntries[0].GetSizePixel().Height() * i * 1.2; maEntries[i].SetPosPixel( aPos ); } + maEntries.back().SetLastEntry(); } else IconSetTypeHdl(NULL); @@ -1350,6 +1358,7 @@ IMPL_LINK_NOARG( ScIconSetFrmtEntry, IconSetTypeHdl ) aPos.Y() += maEntries[0].GetSizePixel().Height() * i * 1.2; maEntries[i].SetPosPixel( aPos ); } + maEntries.back().SetLastEntry(); return 0; } |