[PATCH] fdo#61060 - Freezing now marks spreadsheet as unsaved.

Sameer Deshmukh (via Code Review) gerrit at gerrit.libreoffice.org
Fri Apr 26 10:54:22 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3628

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/28/3628/1

fdo#61060 - Freezing now marks spreadsheet as unsaved.

Change-Id: I27d9c158844124f18c2e4e12c26b9a17d52d4f4c
---
M sc/source/ui/inc/tabview.hxx
M sc/source/ui/view/tabview.cxx
2 files changed, 3 insertions(+), 0 deletions(-)



diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index 9b971da..fbe8b29 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -91,6 +91,7 @@
     ScViewSelectionEngine*  pSelEngine;
     ScViewFunctionSet       aFunctionSet;
 
+    ScDocShell*              pCurDocument;
     ScHeaderSelectionEngine* pHdrSelEng;
     ScHeaderFunctionSet      aHdrFunc;
 
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index d96a06e..b10b7b4 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -226,6 +226,7 @@
     aViewData( &rDocSh, pViewShell ),
     pSelEngine( NULL ),
     aFunctionSet( &aViewData ),
+    pCurDocument ( &rDocSh ),
     pHdrSelEng( NULL ),
     aHdrFunc( &aViewData ),
     pDrawView( NULL ),
@@ -2034,6 +2035,7 @@
     if ( bFreeze )
     {
         Point aWinStart = pWin->GetPosPixel();
+        pCurDocument->SetDocumentModified();
 
         Point aSplit;
         SCsCOL nPosX;

-- 
To view, visit https://gerrit.libreoffice.org/3628
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27d9c158844124f18c2e4e12c26b9a17d52d4f4c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Sameer Deshmukh <sameer.deshmukh93 at gmail.com>



More information about the LibreOffice mailing list