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

2013-04-27 Thread Sameer Deshmukh (via Code Review)
Hi,

I have submitted a patch for review:

https://gerrit.libreoffice.org/3641

To pull it, you can do:

git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/41/3641/1

fdo#61060 - Freezing now marks spreadsheet as unsaved.

Change-Id: I0b479500938e185fb6d163837b29e6e36e823260
---
M sc/source/ui/view/tabview.cxx
1 file changed, 1 insertion(+), 0 deletions(-)



diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index d96a06e..cedfb1a 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2034,6 +2034,7 @@
 if ( bFreeze )
 {
 Point aWinStart = pWin-GetPosPixel();
+aViewData.GetDocShell()-SetDocumentModified();
 
 Point aSplit;
 SCsCOL nPosX;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0b479500938e185fb6d163837b29e6e36e823260
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Sameer Deshmukh sameer.deshmuk...@gmail.com

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2013-04-26 Thread Sameer Deshmukh (via Code Review)
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.deshmuk...@gmail.com

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice