summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-11-27 23:39:20 +0100
committerEike Rathke <erack@redhat.com>2011-11-28 15:25:29 +0100
commitb0477f94d4c811b4e071e11c50bfee7977ee62f1 (patch)
tree8a4db199505b708a5ec494e725f4bbc2d45dea9e /sc/source
parent4775df29d38c912f72c223d99e5104e20fbeed70 (diff)
dr78: #i106108# SetDocumentModified also for page margins
# HG changeset patch # User Niklas Nebel <nn@openoffice.org> # Date 1291638188 -3600 # Node ID 029c278f68940ca4f1ea089cf2ddc62ffdb13d87 # Parent 297b5255c27a9fa541bed948d675bba1c4d87ab0
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/preview.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index c7914f902077..7e018e6a690d 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -1078,6 +1078,7 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
}
if( bMoveRulerAction )
{
+ ScDocShellModificator aModificator( *pDocShell );
if( bLeftRulerChange && bLeftRulerMove )
{
aLRItem.SetLeft( (long)( aButtonUpPt.X() / HMM_PER_TWIPS + aOffset.X() / HMM_PER_TWIPS ));
@@ -1108,6 +1109,7 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
Rectangle aRect(0,0,10000,10000);
Paint( aRect );
+ aModificator.SetDocumentModified();
bLeftRulerChange = false;
bRightRulerChange = false;
}
@@ -1140,6 +1142,7 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
OSL_ENSURE( pStyleSheet, "PageStyle not found" );
if ( pStyleSheet )
{
+ ScDocShellModificator aModificator( *pDocShell );
ScStyleSaveData aOldData;
if( bUndo )
aOldData.InitFromStyle( pStyleSheet );
@@ -1208,6 +1211,7 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
Rectangle aRect(0,0,10000,10000);
Paint( aRect );
+ aModificator.SetDocumentModified();
bTopRulerChange = false;
bBottomRulerChange = false;
bHeaderRulerChange = false;