summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-17 22:58:26 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-18 00:12:51 +0100
commit4d46369f128393441ca87945cb419fe1350d1feb (patch)
treecd10d147f05482adbfbc4664f3035b77ef0990e9
parentf2dac67df505f51e6341d29cd185f25323c75251 (diff)
UI does not update correctly for icon sets, fdo#58308
Change-Id: Iceeab1ea3624fbefa8cb626899262e857b445ac1
-rw-r--r--sc/source/ui/condformat/condformatdlgentry.cxx4
-rw-r--r--sc/source/ui/inc/condformatdlg.hxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx
index 36b8ddb92fdf..3fc161205127 100644
--- a/sc/source/ui/condformat/condformatdlgentry.cxx
+++ b/sc/source/ui/condformat/condformatdlgentry.cxx
@@ -1354,9 +1354,13 @@ IMPL_LINK_NOARG( ScIconSetFrmtEntry, IconSetTypeHdl )
Point aPos = maEntries[0].GetPosPixel();
aPos.Y() += maEntries[0].GetSizePixel().Height() * i * 1.2;
maEntries[i].SetPosPixel( aPos );
+ maEntries[i].Show();
}
maEntries.back().SetLastEntry();
+ SetHeight();
+ static_cast<ScCondFormatList*>(GetParent())->RecalcAll();
+
return 0;
}
diff --git a/sc/source/ui/inc/condformatdlg.hxx b/sc/source/ui/inc/condformatdlg.hxx
index 588d04dbd678..68651ffc122f 100644
--- a/sc/source/ui/inc/condformatdlg.hxx
+++ b/sc/source/ui/inc/condformatdlg.hxx
@@ -78,7 +78,6 @@ private:
ScAddress maPos;
ScRangeList maRanges;
- void RecalcAll();
void DoScroll(long nDiff);
public:
@@ -86,6 +85,7 @@ public:
const ScRangeList& rRanges, const ScAddress& rPos, condformat::dialog::ScCondFormatDialogType eType);
ScConditionalFormat* GetConditionalFormat() const;
+ void RecalcAll();
DECL_LINK( AddBtnHdl, void* );
DECL_LINK( RemoveBtnHdl, void* );