summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-06 16:18:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-06 16:19:35 +0000
commitac561ab34ea9d26243fe3791f624c440dcf7ae6d (patch)
treee099c8cbd34d9a82045bada1a2aa7ab874fcf6c8
parentabf38a157eabe867fb23a85901e149a50e6782cd (diff)
Resolves: tdf#105061 Only one text box shown in case of 'between'
non-layout ScCondFormatList widget not responding to layout child change Change-Id: I7edd4fc54de9e71fb86b47a9b182bfc22fa4af25
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx8
-rw-r--r--sc/source/ui/inc/condformatdlg.hxx1
2 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index 22bd55a87168..b6e21914f5f2 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -157,6 +157,14 @@ void ScCondFormatList::Resize()
RecalcAll();
}
+void ScCondFormatList::queue_resize(StateChangedType eReason)
+{
+ Control::queue_resize(eReason);
+ if (!mpDialogParent) //detects that this is during dispose
+ return;
+ RecalcAll();
+}
+
ScConditionalFormat* ScCondFormatList::GetConditionalFormat() const
{
if(maEntries.empty())
diff --git a/sc/source/ui/inc/condformatdlg.hxx b/sc/source/ui/inc/condformatdlg.hxx
index 62f37584fe19..a79ae0d80f9c 100644
--- a/sc/source/ui/inc/condformatdlg.hxx
+++ b/sc/source/ui/inc/condformatdlg.hxx
@@ -66,6 +66,7 @@ public:
condformat::dialog::ScCondFormatDialogType eType);
virtual Size GetOptimalSize() const override;
+ virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) override;
virtual void Resize() override;
ScConditionalFormat* GetConditionalFormat() const;