summaryrefslogtreecommitdiff
path: root/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx')
-rw-r--r--sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx24
1 files changed, 22 insertions, 2 deletions
diff --git a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
index 80da64a8bd2a..8dc5ade17d61 100644
--- a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
@@ -65,7 +65,27 @@ ScStatisticsTwoVariableDialog::ScStatisticsTwoVariableDialog(
}
ScStatisticsTwoVariableDialog::~ScStatisticsTwoVariableDialog()
-{}
+{
+ disposeOnce();
+}
+
+void ScStatisticsTwoVariableDialog::dispose()
+{
+ mpVariable1RangeLabel.clear();
+ mpVariable1RangeEdit.clear();
+ mpVariable1RangeButton.clear();
+ mpVariable2RangeLabel.clear();
+ mpVariable2RangeEdit.clear();
+ mpVariable2RangeButton.clear();
+ mpOutputRangeLabel.clear();
+ mpOutputRangeEdit.clear();
+ mpOutputRangeButton.clear();
+ mpButtonOk.clear();
+ mpGroupByColumnsRadio.clear();
+ mpGroupByRowsRadio.clear();
+ mpActiveEdit.clear();
+ ScAnyRefDlg::dispose();
+}
void ScStatisticsTwoVariableDialog::Init()
{
@@ -141,7 +161,7 @@ void ScStatisticsTwoVariableDialog::SetActive()
void ScStatisticsTwoVariableDialog::SetReference( const ScRange& rReferenceRange, ScDocument* pDocument )
{
- if ( mpActiveEdit != NULL )
+ if ( mpActiveEdit != nullptr )
{
if ( rReferenceRange.aStart != rReferenceRange.aEnd )
RefInputStart( mpActiveEdit );