summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun2.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-09-28 14:48:59 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-10-15 13:26:10 +0100
commita1077b3cbdb847a452fccd15d9b834bc262cfb62 (patch)
tree68b006b881ac12da5b8faf2151bab0d02db8598d /sc/source/ui/view/viewfun2.cxx
parent8552e5fa1c56bb3ed7c86ef3c4922635e4178ebc (diff)
fdo#47958: gross cut/paste signal emission nonsense
Change-Id: I60b7a4c5b80410429e5489ee6517bbda8cf328dd
Diffstat (limited to 'sc/source/ui/view/viewfun2.cxx')
-rw-r--r--sc/source/ui/view/viewfun2.cxx20
1 files changed, 8 insertions, 12 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index c848d08ebc62..2d03320bc918 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1284,13 +1284,11 @@ void ScViewFunc::FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd,
pDocSh->UpdateOle(GetViewData());
UpdateScrollBars();
- // #i97876# Spreadsheet data changes are not notified
- ScModelObj* pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() );
- if ( pModelObj && pModelObj->HasChangesListeners() )
+ ScRangeList aChangeRanges;
+ HelperNotifyChanges aHelperNotifyChanges(&aChangeRanges, "cell-change");
+ if (aHelperNotifyChanges.getMustPropagateChanges())
{
- ScRangeList aChangeRanges;
- aChangeRanges.Append( aRange );
- pModelObj->NotifyChanges( OUString( "cell-change" ), aChangeRanges );
+ aChangeRanges.Append(aRange);
}
}
}
@@ -1316,11 +1314,10 @@ void ScViewFunc::FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow,
pDocSh->UpdateOle(GetViewData());
UpdateScrollBars();
- // #i97876# Spreadsheet data changes are not notified
- ScModelObj* pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() );
- if ( pModelObj && pModelObj->HasChangesListeners() )
+ ScRangeList aChangeRanges;
+ HelperNotifyChanges aHelperNotifyChanges(&aChangeRanges, "cell-change");
+ if (aHelperNotifyChanges.getMustPropagateChanges())
{
- ScRangeList aChangeRanges;
ScRange aChangeRange( aRange );
switch ( eDir )
{
@@ -1350,8 +1347,7 @@ void ScViewFunc::FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow,
}
break;
}
- aChangeRanges.Append( aChangeRange );
- pModelObj->NotifyChanges( OUString( "cell-change" ), aChangeRanges );
+ aChangeRanges.Append(aChangeRange);
}
}
}