diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-08-15 12:06:44 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-08-15 12:06:44 +0000 |
commit | 1ae90cd35e92a6f2cf44679897949f5b9a17f65a (patch) | |
tree | 5c31af002766ec781a6c9f1634afaa9efe71a37d /svx/source/unodraw | |
parent | 280502f52cf13a1ddd8a7f69b8efc6e0629f4a20 (diff) |
INTEGRATION: CWS impress152_DEV300 (1.47.74); FILE MERGED
2008/08/13 15:30:39 cl 1.47.74.1: #i91977# applied patch to create new view if model changes
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/unopage.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index d291c51b42..024e4e6d0e 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unopage.cxx,v $ - * $Revision: 1.47 $ + * $Revision: 1.48 $ * * This file is part of OpenOffice.org. * @@ -967,6 +967,14 @@ void SvxDrawPage::ChangeModel( SdrModel* pNewModel ) StartListening( *pNewModel ); mpModel = pNewModel; + + if( mpView ) + { + delete mpView; + mpView = new SdrView( mpModel ); + if( mpView ) + mpView->SetDesignMode(sal_True); + } } } |