[PATCH] fdo#61060 - Freeze and unfreeze now mark document as unsaved...
Sameer Deshmukh (via Code Review)
gerrit at gerrit.libreoffice.org
Fri Apr 26 03:23:54 PDT 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3620
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/20/3620/1
fdo#61060 - Freeze and unfreeze now mark document as unsaved.
Change-Id: Ie1377e42430a6608c0d316d5bf1f2a2dd2f35df9
---
M sc/source/ui/inc/tabview.hxx
M sc/source/ui/view/tabview.cxx
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index 9b971da..28e6aff 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -104,6 +104,7 @@
FuPoor* pDrawActual;
FuPoor* pDrawOld;
+ ScDocShell* pCurDocument;
ScGridWindow* pGridWin[4];
ScColBar* pColBar[2];
ScRowBar* pRowBar[2];
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 76dcd12..42da756 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -223,6 +223,7 @@
ScTabView::ScTabView( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ) :
pFrameWin( pParent ),
+ pCurDocument (&rDocSh),
aViewData( &rDocSh, pViewShell ),
pSelEngine( NULL ),
aFunctionSet( &aViewData ),
@@ -2028,14 +2029,13 @@
if ( eOldV != SC_SPLIT_NONE )
ePos = SC_SPLIT_TOPLEFT;
Window* pWin = pGridWin[ePos];
- ScDocShell* pDocSh = NULL;
bool bLayoutRTL = aViewData.GetDocument()->IsLayoutRTL( aViewData.GetTabNo() );
if ( bFreeze )
{
Point aWinStart = pWin->GetPosPixel();
- pDocSh->SetDocumentModified();
+ pCurDocument->SetDocumentModified();
Point aSplit;
SCsCOL nPosX;
--
To view, visit https://gerrit.libreoffice.org/3620
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1377e42430a6608c0d316d5bf1f2a2dd2f35df9
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