diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-10-06 20:52:15 +0200 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-10-07 08:49:32 +0200 |
commit | f1f2a3faeaddf9e9a59f44bf9de38a1f0aa97104 (patch) | |
tree | fe2075e119069cb1cb377dcb6a61aa63e1a9a999 /sc/source | |
parent | cd746546df895338b13992cb064a4b85d1cfaeac (diff) |
Revert "tdf#149598 - Remember window state of the format cell dialog"
This reverts commit c1893df42567c260ca5fb069038d1a55616e7b7f.
Reason for revert: causes a regression under Linux (Bug 156710)
https://bugs.documentfoundation.org/show_bug.cgi?id=156710
Change-Id: I72a570ecba4cf7fe594a0bb50a121ab2e99cc613
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157624
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/attrdlg/attrdlg.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sc/source/ui/attrdlg/attrdlg.cxx b/sc/source/ui/attrdlg/attrdlg.cxx index 7bd79468d27d..faa08bf3ca00 100644 --- a/sc/source/ui/attrdlg/attrdlg.cxx +++ b/sc/source/ui/attrdlg/attrdlg.cxx @@ -31,17 +31,11 @@ #include <editeng/flstitem.hxx> #include <osl/diagnose.h> #include <comphelper/lok.hxx> -#include <unotools/viewoptions.hxx> ScAttrDlg::ScAttrDlg(weld::Window* pParent, const SfxItemSet* pCellAttrs) : SfxTabDialogController(pParent, "modules/scalc/ui/formatcellsdialog.ui", "FormatCellsDialog", pCellAttrs) { - // tdf#149598 - restore window state of the dialog - SvtViewOptions aDlgOpt(EViewType::Dialog, "FormatCellDialog"); - if (aDlgOpt.Exists()) - m_xDialog->set_window_state(aDlgOpt.GetWindowState()); - SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_NUMBERFORMAT ), "GetTabPageCreatorFunc fail!"); @@ -73,9 +67,6 @@ ScAttrDlg::ScAttrDlg(weld::Window* pParent, const SfxItemSet* pCellAttrs) ScAttrDlg::~ScAttrDlg() { - // tdf#149598 - remember window state of the dialog - SvtViewOptions aDlgOpt(EViewType::Dialog, "FormatCellDialog"); - aDlgOpt.SetWindowState(m_xDialog->get_window_state(vcl::WindowDataMask::PosSize)); } void ScAttrDlg::PageCreated(const OUString& rPageId, SfxTabPage& rTabPage) |