summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-16 14:27:42 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-16 14:27:42 +0100
commit247ba6c56c0bf4e27744b2b895411247420bebcf (patch)
treef445c84539849566228579cfdffc0e35cf80d6d2 /chart2/source/model
parent5854c96421fe2a2320b36ae570c987392c235e9a (diff)
undoapi: undo/redo: call ChartViewHelper::setViewToDirtyState (was still left after the refactoring)
Diffstat (limited to 'chart2/source/model')
-rwxr-xr-xchart2/source/model/main/UndoManager.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/chart2/source/model/main/UndoManager.cxx b/chart2/source/model/main/UndoManager.cxx
index 98b63012c737..b88f40307d8a 100755
--- a/chart2/source/model/main/UndoManager.cxx
+++ b/chart2/source/model/main/UndoManager.cxx
@@ -27,6 +27,7 @@
#include "precompiled_chart2.hxx"
#include "UndoManager.hxx"
+#include "ChartViewHelper.hxx"
/** === begin UNO includes === **/
#include <com/sun/star/lang/DisposedException.hpp>
@@ -64,6 +65,7 @@ namespace chart
using ::com::sun::star::util::NotLockedException;
using ::com::sun::star::lang::NoSupportException;
using ::com::sun::star::util::XModifyListener;
+ using ::com::sun::star::frame::XModel;
/** === end UNO using === **/
namespace impl
@@ -276,6 +278,8 @@ namespace chart
{
UndoManagerMethodGuard aGuard( *m_pImpl );
m_pImpl->getUndoHelper().undo( aGuard );
+
+ ChartViewHelper::setViewToDirtyState( Reference< XModel >( getParent(), UNO_QUERY ) );
}
//------------------------------------------------------------------------------------------------------------------
@@ -283,6 +287,8 @@ namespace chart
{
UndoManagerMethodGuard aGuard( *m_pImpl );
m_pImpl->getUndoHelper().redo( aGuard );
+
+ ChartViewHelper::setViewToDirtyState( Reference< XModel >( getParent(), UNO_QUERY ) );
}
//------------------------------------------------------------------------------------------------------------------