summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/PivotLayoutDialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui/PivotLayoutDialog.cxx')
-rw-r--r--sc/source/ui/dbgui/PivotLayoutDialog.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutDialog.cxx b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
index 3d3a1910224e..b5d2c658e352 100644
--- a/sc/source/ui/dbgui/PivotLayoutDialog.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
@@ -604,16 +604,21 @@ void ScPivotLayoutDialog::PushDataFieldNames(std::vector<ScDPName>& rDataFieldNa
return mpListBoxData->PushDataFieldNames(rDataFieldNames);
}
+bool ScPivotLayoutDialog::Close()
+{
+ return DoClose( ScPivotLayoutWrapper::GetChildWindowId() );
+}
+
IMPL_LINK( ScPivotLayoutDialog, OKClicked, PushButton*, /*pButton*/ )
{
ApplyChanges();
- DoClose( ScPivotLayoutWrapper::GetChildWindowId() );
+ Close();
return 0;
}
IMPL_LINK( ScPivotLayoutDialog, CancelClicked, PushButton*, /*pButton*/ )
{
- DoClose( ScPivotLayoutWrapper::GetChildWindowId() );
+ Close();
return 0;
}