summaryrefslogtreecommitdiff
path: root/starmath/source/document.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-11-02 13:19:49 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-11-02 13:19:49 +0100
commitad6b810a3cb8077f49b480e1b7f57c890fdd421f (patch)
treed9598bc40c4738223d7a390185e7d8d2dce88003 /starmath/source/document.cxx
parent87438fc8c909328585dcfabc936c30dd16cfb91e (diff)
undoapi: allow retrieving the count/comments of Undo/Redo actions both on the current and the top level
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r--starmath/source/document.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 536fbeb91a0d..720c5d1ede59 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -1258,7 +1258,7 @@ void SmDocShell::GetState(SfxItemSet &rSet)
::svl::IUndoManager* pTmpUndoMgr = GetUndoManager();
if( pTmpUndoMgr )
{
- UniString(::svl::IUndoManager:: *fnGetComment)( USHORT ) const;
+ UniString(::svl::IUndoManager:: *fnGetComment)( USHORT, bool const ) const;
sal_uInt16 nCount;
if( SID_GETUNDOSTRINGS == nWh )
@@ -1275,7 +1275,7 @@ void SmDocShell::GetState(SfxItemSet &rSet)
{
String sList;
for( sal_uInt16 n = 0; n < nCount; ++n )
- ( sList += (pTmpUndoMgr->*fnGetComment)( n ) )
+ ( sList += (pTmpUndoMgr->*fnGetComment)( n, ::svl::IUndoManager::TopLevel ) )
+= '\n';
SfxStringListItem aItem( nWh );