diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-18 16:35:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-18 16:35:45 +0000 |
commit | cb3992630ce2452d1eb599ff1268efb4a1b99e04 (patch) | |
tree | ccc71355a2ec5da63ec13139e53481f0255ddd64 /sd/source/ui/app | |
parent | 6f5a948612a541fff845cbef44e79adaf9c45793 (diff) |
assert because still listening to the wrong view when SetView used
we're still listening to the old one here when we set a new one
Change-Id: Iaf64ba17a7adf2489a4f0475bba03a2500a556c0
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index 43172099a9c8..dda4f74a5fe0 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -806,6 +806,15 @@ void SdTransferable::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) } } +void SdTransferable::SetView(const ::sd::View* pView) +{ + if (mpSdView) + EndListening(*const_cast<sd::View*>(mpSdView)); + mpSdView = pView; + if (mpSdView) + StartListening(*const_cast<sd::View*>(mpSdView)); +} + bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& rFlavor) { if ( pModel ) |