sc/source/ui/attrdlg/attrdlg.cxx |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit a0faa0bca2bcd6929d178ad40237addec98090c5
Author:     Andreas Heinisch <andreas.heini...@yahoo.de>
AuthorDate: Fri Oct 6 20:52:15 2023 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Oct 9 13:05:18 2023 +0200

    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.heini...@yahoo.de>
    (cherry picked from commit f1f2a3faeaddf9e9a59f44bf9de38a1f0aa97104)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157712
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/attrdlg/attrdlg.cxx b/sc/source/ui/attrdlg/attrdlg.cxx
index e09a69b5c13f..deb814820bd6 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)

Reply via email to