Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.