summaryrefslogtreecommitdiff
path: root/cui/source/options/optchart.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-06-20 19:17:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-20 20:53:26 +0200
commitb95142c11e80c58b70dff68bfd7f3792657b9ee2 (patch)
tree4cb6c5c3d61f2d5f61ac288802b897e75ce4281b /cui/source/options/optchart.cxx
parent8388b834c547d39ceff68b0e247ec164e9fc505d (diff)
tdf#58134 Reset Button in Options Dialogs
fixed a couple of these. Change-Id: Ibef29afee1d702af2812996093deb7204c74e32c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136195 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/options/optchart.cxx')
-rw-r--r--cui/source/options/optchart.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index af9b92322802..9b1e6c9c92f2 100644
--- a/cui/source/options/optchart.cxx
+++ b/cui/source/options/optchart.cxx
@@ -157,7 +157,16 @@ bool SvxDefaultColorOptPage::FillItemSet( SfxItemSet* rOutAttrs )
void SvxDefaultColorOptPage::Reset( const SfxItemSet* )
{
- m_xLbChartColors->select( 0 );
+ if( m_SvxChartColorTableUniquePtr )
+ {
+ m_SvxChartColorTableUniquePtr->useDefault();
+
+ FillBoxChartColorLB();
+
+ m_xLbChartColors->grab_focus();
+ m_xLbChartColors->select( 0 );
+ m_xPBRemove->set_sensitive(true);
+ }
}
void SvxDefaultColorOptPage::FillPaletteLB()