summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 5541c49977fd..262a9765f106 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* );