diff options
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 5bbb325cc854..7c6e51cd0109 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -208,6 +208,7 @@ void ImpEditEngine::SetRefMapMode( const MapMode& rMapMode ) if ( GetRefDevice()->GetMapMode() == rMapMode ) return; + mpOwnDev.disposeAndClear(); mpOwnDev = VclPtr<VirtualDevice>::Create(); pRefDev = mpOwnDev; pRefDev->SetMapMode( MapUnit::MapTwip ); |