[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kspread
From: Laurent Montel <montel () kde ! org>
Date: 2005-09-27 8:35:00
Message-ID: 1127810100.529171.25729.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 464408 by mlaurent:
setModified(true) when we create an action (into kspread_undo
otherwise it's never changed)
M +6 -6 kspread_undo.cc
M +2 -3 kspread_undo.h
--- trunk/koffice/kspread/kspread_undo.cc #464407:464408
@@ -2003,11 +2003,11 @@
{
cell->setCellText( (*it).text );
found = true;
- }
- if( !found )
+ }
+ if( !found )
cell->setCellText( "", true );
}
-
+
}
else
{
@@ -2053,11 +2053,11 @@
{
cell->setCellText( (*it).text );
found = true;
- }
- if( !found )
+ }
+ if( !found )
cell->setCellText( "", true );
}
-
+
}
else
{
--- trunk/koffice/kspread/kspread_undo.h #464407:464408
@@ -29,6 +29,7 @@
class RowFormat;
#include "kspread_global.h"
+#include "kspread_doc.h"
#include <koUnit.h>
#include <koPageLayout.h>
@@ -111,7 +112,7 @@
class KSpreadUndoAction
{
public:
- KSpreadUndoAction( KSpreadDoc *_doc ) { m_pDoc = _doc; }
+ KSpreadUndoAction( KSpreadDoc *_doc ) { m_pDoc = _doc; m_pDoc->setModified(true); }
virtual ~KSpreadUndoAction() { }
virtual void undo() = 0;
@@ -121,8 +122,6 @@
QString getName()const {return name ;}
-// #### To be private
-
protected:
KSpreadDoc *m_pDoc;
QString name;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic